Re: Route : defaut action for a controller

2006-09-26 Thread [EMAIL PROTECTED]
Sounds like what youa re wanting is a $Route-connect('/blog', array('controller'='Blog', 'action'='index')); You cannot using the :action and then also explicitly define the action. And if you didn't then you are just reverting back to the default behaviour. So, sounds like you just want them

Re: Predefined Elements for Layouts

2006-09-26 Thread [EMAIL PROTECTED]
No Brian don't tell him that. Layouts is what you are looking for. Even if you have dynamic layouts I think if you set those variables in each controller it should still use them. The layout is what you setup to fill with the dynamic data. So, anything static as headers and footers generall

session component returns null in appcontroller __construct

2006-09-26 Thread [EMAIL PROTECTED]
Hi, I want to add a general session checking mechanism that is applicable for all the controllers. I feel that the code should be in /app/AppController otherwise, it would be a copy-paste for 20-odd controllers. I tried this: class AppController extends Controller { function

Re: Admin, could you please add a subject prefix for this group?

2006-09-26 Thread [EMAIL PROTECTED]
Yeah do the filter based on senders address. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email

Re: CakePHP Under IIS 6 ... the best way ?

2006-09-26 Thread Dom
Because somes functions (in the layout) generate : link rel=stylesheet type=text/css href=/app/webroot/css/cake.basic.css media=all / link rel=stylesheet type=text/css href=/app/webroot/css/cake.forms.css media=all / script type=text/javascript src=/app/webroot/js/prototype.js/script script

In your AppController

2006-09-26 Thread FLUSH44
In your AppController : add : var $helpers = array('Html','Javascript','Ajax'); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: CakePHP Under IIS 6 ... the best way ?

2006-09-26 Thread Dom
In fact, with define ('BASE_URL', env('SCRIPT_NAME') . ?); and define ('SERVER_IIS', true); URL/index.php?/controller/method/id works but ajax don't work and no style on the view --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: session component returns null in appcontroller __construct

2006-09-26 Thread AD7six
use the beforeFilter, not the constructor for such functionality. HTH, AD7six --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To

Re: generateList with Value combined from 2 table fields?

2006-09-26 Thread [EMAIL PROTECTED]
I have a function in my model defined as generateNameList() where it joins those fields together. So, it actually gets the data and does the foreach loop to generate the proper array. I have two of these in my application. So, it might be a good enhancement for CakePHP to make some way to use

Re: Compound Keys in CakePHP

2006-09-26 Thread Jon Bennett
I'm just getting started with CakePHP and would like to know if it can handle compound keys in a database. For example, if you were to add tags to a blog, the schema would roughly be table: article(article_id, article_text, PRIMARY_KEY(article_id)); table: tag (tag_id, tag_word,

Re: updating to various tables

2006-09-26 Thread Chris Hartjes
On 9/26/06, michael234 [EMAIL PROTECTED] wrote: I have my appointments_controller.. var $name='Appointments'; function add() { $this-set('data', $this-Appointment-Enquiry-find()); if(empty($this-params['data'])) { $this-render();

Re: Admin, could you please add a subject prefix for this group?

2006-09-26 Thread Brian French
you can also just create a filter in your MUA that looks for any email address coming from 'cake-php@googlegroups.com' and dump it into a sub folder; At least thats what i do. Kjell Bublitz wrote: Heya I just enabled the mail on new message for this group. The subjects not always tell if

Re: Am I right about models?

2006-09-26 Thread [EMAIL PROTECTED]
HA HA HA! We just have healthy fundamental differences. But I think for the most part we are pretty similiar. And they say people you are most like is who you get along with least. Another thing to think about is associations. For associations CakePHP loads the model classes of the

Ajax-ObserveField

2006-09-26 Thread carlosrg
Hi, with this helper, can I pass any other id value apart of field_id? I have try the with option but it doesn't work. Thanks a lot! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to

Re: Compound Keys in CakePHP

2006-09-26 Thread [EMAIL PROTECTED]
I used to be scared of the HABTM relationship. Now I redid my application that had 0 before and now it has 5. So, nice not tying things down to only one relation, but giving them free relation. Harder to maintain, but much nicer in the end. I am interested in the deleteQuery portion of the

Re: Predefined Elements for Layouts

2006-09-26 Thread Brian French
I guess you could always do this in your layout or actual view: ?php echo $this-renderElement('header'); ? Brian French wrote: You may be looking for the layouts. http://manual.cakephp.org/chapter/views [EMAIL PROTECTED] wrote: Hello there fellow bakers! I've finally taken

Re: Fatal error: session_start(): Failed to initialize storage module: user

2006-09-26 Thread Chris Hartjes
On 9/26/06, kiper [EMAIL PROTECTED] wrote: Fatal error: session_start(): Failed to initialize storage module: user (path: /tmp) in /var/www/vhosts/kitserver.se/httpdocs/cake/libs/session.php on line 131 Could anyone explain to me why this is happening? Does the /tmp directory have proper

Route : defaut action for a controller

2006-09-26 Thread x0rster
Hi, I'm trying to get this working (from the cake manual) : -- The following example joins all the urls in /blog to the BlogController. The default action will be BlogController::index(). $Route-connect ('/blog/:action/*',

Fatal error: session_start(): Failed to initialize storage module: user

2006-09-26 Thread kiper
Fatal error: session_start(): Failed to initialize storage module: user (path: /tmp) in /var/www/vhosts/kitserver.se/httpdocs/cake/libs/session.php on line 131 Could anyone explain to me why this is happening? --~--~-~--~~~---~--~~ You received this message

Re: Route : defaut action for a controller

2006-09-26 Thread Schinki
Hi. I think, you don´t need to rewrite your Router. index is the default action, if no action is given. url: www.example.com/blog/ - controller: blog, action: index Am i wrong or i can´t understand you? Cheers. --~--~-~--~~~---~--~~ You received this message

Re: updating to various tables

2006-09-26 Thread michael234
Thank you very much for your reply, I have been reading it closely and try to apply it to my work, however I have found myself stuck in the same rut. My problem is really very simply but I've tried everything and can get a solution. All I need is to populate a field in my appointments form with

Re: Predefined Elements for Layouts

2006-09-26 Thread Brian French
You may be looking for the layouts. http://manual.cakephp.org/chapter/views [EMAIL PROTECTED] wrote: Hello there fellow bakers! I've finally taken the plunge into using CakePHP to place some structure into my webdesign work. I am totally new to using frameworks and have been racking my

Re: generateList with Value combined from 2 table fields?

2006-09-26 Thread [EMAIL PROTECTED]
Also, just being picky, but add in ,first_name ASC as well just in case people have the same last name. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: Ajax-ObserveField

2006-09-26 Thread [EMAIL PROTECTED]
Gonna have to get some more details. Possibly your code to help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from

Re: Fatal error: session_start(): Failed to initialize storage module: user

2006-09-26 Thread kiper
Sure, it happens occasionally and after a few reloads it works again... It started when I upgraded to the new release. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send

Re: Why do plugins use separate sessions?

2006-09-26 Thread AD7six
Hi zcox, In the 1.2 branch (which I use) this problem seems to have gone away. I wrote about what I did to fix it here: http://noswad.me.uk/MiBlog/SessionsAndPlugins I since removed the hack/fix but if you have the same problem, I hope that helps. Cheers, AD7six

Re: Why do plugins use separate sessions?

2006-09-26 Thread Zach Cox
Awesome - you rock! I got around this (for now) by just using cookies but I'll try the fixes on your blog if 1.2 isn't out soon enough.I can see the rationale for having plugins use separate sessions but it's also useful for them to use the main app session. Would be nice to choose the session to

Same Error

2006-09-26 Thread [EMAIL PROTECTED]
Just wanted to let you know that I get the same dump at the top of the page. I also got almost every error in quite the same manner of the other posts in this topic. I am using Cake 1.1.8.3544. Thanks - and I will let you know if I come across any tips.

Re: Fatal error: session_start(): Failed to initialize storage module: user

2006-09-26 Thread Chris Hartjes
On 9/26/06, kiper [EMAIL PROTECTED] wrote: This is REALLY weird, now it just died on me totally and I get the error message no matter what I try... Hey kiper, I've run into this before and I remember that I fixed it by looking at the error logs and it told me where the session files for my

Re: Am I right about models?

2006-09-26 Thread Sonic Baker
Sigh. Just when I thought I had the MVC thing done and dusted. I'm fairly sure there was another thread where the general thought was that anything related to data should be done in the Model and the controller should be used as the glue between the model and the view. I've just delayed a

Tutorial for integrating PHP/SWF Charts with CakePHP

2006-09-26 Thread Chris Hartjes
Hey guys, I just posted a tutorial to my web site on how to integrate PHP/SWF charts (a cool Flash-based graphing tool with a PHP library) into CakePHP. Please go take a look, point out anything that seems to be missing or just plain broken. When that's all fixed up, I'll put the same info up

Really Simple Creating of ACL Tables

2006-09-26 Thread [EMAIL PROTECTED]
Just run php acl.php initdb from the command line in your /cake/scripts folder. Worked very well with my PostgreSQL 8 database. For more information, read the excerpt below (taken from http://wiki.cakephp.org/docs:acl:introduction?s=acl#dbacldatabase-backed_acl_for_cake) The new stuff is

Bake.php error

2006-09-26 Thread Brian French
I am creating a new project and i am using the bake.php script to do this. I go through the process to create the Model then is asks: Cake test suite not installed. Do you want to bake unit test files anyway? (y/n) I select Yes and it gives me the below error: You can download the Cake test

Re: HABTM

2006-09-26 Thread benstof
thanks man.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more

Re: Very Basic ACL Questions

2006-09-26 Thread Jeff
Use the cake ACM, it's sweet! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL