Welcome Guest, Not a member yet? Register   Sign In
  Smarty caching problems in IE
Posted by: El Forum - 08-19-2007, 11:16 PM - No Replies

[eluser]Varzock[/eluser]
Hi everybody,

I've been using Smarty with CI for awhile now and I like it. I have coded a simple CMS tool which allows you to login, add/modify/remove users, add pages, modify and remove them, add calendar marks etc etc.

Everything works just fine, the only problem is that on IE, when I log off the system and then login again say /myCMS/user-management, IE doesn't redirect the user to login screen but shows that user-management page even it shouldn't. When I try to click on the links on that page it _then_ redirects me to login page. On Firefox there is no such a problem.

That's why I was thinking wheter it is some kind of a cache problem. I have tried to disable all caching but still that problem doesn't disappear on IE.

Any ideas? Thanks.


  Mail() on Dreamhost
Posted by: El Forum - 08-19-2007, 04:47 PM - No Replies

[eluser]tmcw[/eluser]
Hi, I'm developing an app on Dreamhost and, to my delight, discovered that mail() is not supported because of the way they jigger things. So this means that the email helper doesn't work.

Has anyone experienced this and maybe has found a clean workaround?

Thanks!
Tom


  convert SQL results set to N-dimensional array [SOLVED]
Posted by: El Forum - 08-19-2007, 03:19 PM - No Replies

[eluser]obiron2[/eluser]
I am returning a results set which contains the following data:

Table number, seat number, First Name, Surname

Ordered by table ASC, Seat ASC so I get

Code:
1,1,Fred,Bloggs
1,2,Joe, Smith
2,1,Bob,Jones
2,2,Mick,Reed
3,1,Mark,Thomas
3,2,Sam,Brown

I want to convert this to a 2 dimensional array with the table number being the outer dimension and the seat and name data being the inner dimension

Code:
$data['Tabledetails'] = array
                         (array
                           (Table=>1,
                            Tabledata => array
                             (Seat=>1,Fname=>'Fred',Sname=>'Bloggs'),
                             (Seat=>2,Fname=>'Joe',Sname=>'Smith')
                            ),
                            (Table=>2,
                             Tabledata => array
                               (Seat=>1,Fname=>'Bob', Sname=>'Jones'),
                               (Seat=>2,Fname=>'Mick', Sname=>'Reed'),
                            ),
                            (Table=>3,
                             Tabledata => array
                               (Seat=>1,Fname=>'Mark', Sname=>'Thomas'),
                               (Seat=>2,Fname=>'Sam', Sname=>'Brown'),
                            )
                           )

Does anyone have a generic function that does this, either into an array or an object. The data is so much easier to work with in the view if it correctly formatted.

Obiron


  My new Site: Cotizr
Posted by: El Forum - 08-19-2007, 02:25 PM - No Replies

[eluser]guidorossi[/eluser]
Hi!

I just want to share with CI users my new site, powered by CI and mootools.

Cotizr is a finance information site, to have quick acces to Argentinian stock quotes and world markets.


PS: how can I make the display:none work in IE?


  orchidForms
Posted by: El Forum - 08-19-2007, 11:41 AM - No Replies

[eluser]Developer13[/eluser]
I'm almost done with the first alpha release of orchidForms. I plan to have it finished and posted sometime this evening in case anybody is interested.

At that time, I'll also post screenshots and such so you can get a better idea of what it does before you mess with downloading it and all that fun stuff.

Peace out!


  Filling data in a dropdown from the db
Posted by: El Forum - 08-19-2007, 11:17 AM - No Replies

[eluser]Guillem[/eluser]
I am trying to fill a dropdown in a form with some data in my db.

I get the id and the name of the elements in the table I want to show in my dropdown and I pass them to the view:

Code:
$this->db->select('id, nombre');
$data['operadoras'] = $this->db->get('operadoras');
Then, I would like to create an array with id and nombre, but I cannot figure it up how. I tried something like that
Code:
array(
foreach ($operadoras->array_result() as $row):
$row->id => $row->nombre,
endforeach;);
but definitely it's not working.

Is there any function in the helpers of CI to make what I want to? If not, how can I make it?

Thank you all


  Weird "Undefined property" error in Rapyd Permissions
Posted by: El Forum - 08-19-2007, 08:57 AM - No Replies

[eluser]Kemik[/eluser]
Hello,

I used Rapyd to manage my ACL system. It works great for all the times I've used it, except this time.

All the files in the controllers folder have "has_permission(number)" of some kind and it works. E.g. if someone doesn't have that permission they get an error.

However, I have made some controllers for the admin side (controllers/admin) & (views/admin) but now I get:

Quote:Message: Undefined property: allow_deny

Filename: classes/rapyd_auth.php on line 302.

The database field is obviously there as I use the function throughout the rest of the app.

Does anyone have any suggestions?

Edit: I've locked it down to a problem with roles. The system allows the user to have direct permissions. E.g. If I give user Bill permission 8, I can access 8. However if I give user Bill role 2 (admin) and role 2 has access to 8, the system gives that error.


  How can I determine which version of CodeIgniter I have installed?
Posted by: El Forum - 08-19-2007, 08:13 AM - No Replies

[eluser]RickRobinson[/eluser]
It is time for some maintenance updates but I'm not sure where I'm starting from...


  !$variable
Posted by: El Forum - 08-19-2007, 07:42 AM - No Replies

[eluser]Kemik[/eluser]
Hello,

I'm setting the $header variable for all my page titles. However, I want to add a line in the header which says, if the $header variable doesn't exist then do the default title of "My Website" instead of "Page :: Website".

If I use the current code:

Code:
<?php if (!$header): ?>
<title>My Website</title>
<?php else: ?>
<title><?php echo $header; ?> :: Website</title>
<?php endif; ?>

I get the "Variable doesn't exist" error at the top of the page. Is there anyway around this or is it simply a case of "You better not forget to declare the $data['header'] variable in every page!"

Thanks.


  One form, many actions
Posted by: El Forum - 08-19-2007, 05:57 AM - No Replies

[eluser]Sector[/eluser]
Hello, once again I'm stuck on something, and not being able to find a solution that's not hackerish is nagging at me.

I have a form, and it contains many checkboxes. (one for each item in a table).
At the end of that form, you can press multiple submit buttons. The form is a POST
form that points to the controller action with method delegate. I envisioned this method because I cannot let a form point to multiple URLs.

What I want to happen is: if a person checks a few checkboxes and presses the 'delete' button, I want to delegate page to reroute to action/delete, with exactly the same POST array.

How can I accomplish this with Code Igniter?

Thanks very much in advance!


Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Latest Threads
Changing Session cookie -...
by codeus
9 hours ago
Installation CI4 - Clonin...
by Arish12
Today, 02:19 AM
hot-reload side effects s...
by PaulC
Today, 01:23 AM
Validation Rules: Valid e...
by InsiteFX
Yesterday, 09:55 PM
which linter to use (and ...
by paulbalandan
Yesterday, 10:06 AM
Update from 4.6.0 to 4.6....
by Vespa
05-18-2025, 01:17 AM
using app/Config/App.php ...
by sam547
05-16-2025, 03:04 PM
Setting baseURL in Regist...
by grimpirate
05-15-2025, 02:20 PM
CRUD Code Generator
by DeanE10
05-15-2025, 05:31 AM
CI debugging tools
by Montasser
05-14-2025, 02:54 PM

Forum Statistics
» Members: 147,129
» Latest member: tylernovax
» Forum threads: 78,392
» Forum posts: 379,480

Full Statistics

Search Forums

(Advanced Search)


Theme © iAndrew 2016 - Forum software by © MyBB