Re: SaveAll not saving multiple model data when first oine is blank!

2010-08-05 Thread AmityWeb
I have concluded SaveAll does not work if you have multiple hasMany
models and the first one (maybe others?) has no data. I have tried
many, many things and it just does not save the data.

So I have resorted to normal save() for the main model then individual
saves for each hasMany model using the foreign_key obtained from the
first main save.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


How do you configure CakePHP for Plesk? I get Internal Server Error

2009-06-19 Thread AmityWeb


HI

I developed an app on my local machine (Vista) and it worked fine. I then
uploaded it to my Linux with Cpanel/WHM and it worked fine (after changing
RewriteBase to the new URL), but when I uploaded it to the clients Plesk
server (with 1and1) I get an Internal Server Error 500 whenever .htaccess is
used in the root httdocs/ folder. I have changed RewriteBase accordingley.
ModRewrite is enabled as I tested it with a test script. 

error_log is not storing the errors from the internal server error. 

So I cannot for the life of me figure out what the issue is, I have searched
loads of forums for this issue, but none of them solve it. 

Thanks
-- 
View this message in context: 
http://www.nabble.com/How-do-you-configure-CakePHP-for-Plesk--I-get-Internal-Server-Error-tp24120764p24120764.html
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: What's best way to create the Admin area?

2009-06-06 Thread AmityWeb


Yes, but if I use the admin router dont I have to create separate views for
the admin too?? So I will have two views for everything, with the admin view
just having the extra functions required for admin. So if I have to
edit/add/delete something to the view I have to do it twice. So this is what
I wanted to avoid.

Can you use the admin route but keep one view and just have some functions
to display the admin part of the user is admin?
-- 
View this message in context: 
http://www.nabble.com/What%27s-best-way-to-create-the-Admin-area--tp23899722p23900635.html
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



What's best way to create the Admin area?

2009-06-06 Thread AmityWeb


Hi all

I wondered if anyone can advise I understand a few different ways to
create an Admin area and wanted to find out what is the best way.

1) Separate system in a sub-folder /admin/

2) Exact same system but just showing Admin functions if the logged in user
is admin

3) Using the built in admin routing

Maybe it depends if the admin area is similar to the customer area with a
few difference, or whether it is very different?

Any thoughts appreciated. Thanks 
-- 
View this message in context: 
http://www.nabble.com/What%27s-best-way-to-create-the-Admin-area--tp23899722p23899722.html
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---