validation messages lost in an ajax submitted form
Hi there, Is it possible to create an ajax submitted form without lost the validation error messages? I have a view with this form form(null, 'post', array('update'=> 'someDiv', 'indicator'=> 'divIndicator', 'url'=> array('controller'=> 'comments', 'action'-> 'add'))); echo $form->inputs(); echo $form->end(); ?> But this way the error validation messages doesn't appear. If I change the $ajax->form to a $form->create, the whole thing works. But I'd like to keep the indicator loading message. So, what can I do? Any help is appreciated. Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 http://mfandrade.wordpress.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: How is the difference between Model::query() and Model::execute()?
same as without cake! usually execute "executes" (boolean true/false) and query can fetch, update, delete, insert... in cake you usually need only query On 5 Sep., 22:12, Miles J wrote: > query() is used by you manually within your Models. execute() is > called privately within the Model class. --~--~-~--~~~---~--~~ 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: Automatically rendering element using RequestHandler - possible?
well i ususally put my analytics at the very bottom of the default layout a) every site gets tracked automatically b) all ajax requests are not effected (layout plain etc) if you really need to use analytics there too you could do that by adding it there again (some toggle variable) On 5 Sep., 21:06, Miles J wrote: > Well personal opinion I guess. Im against using ajax for pagination > (for many obvious reasons), and for "tricking" google thinking its a > page view, when it is not. To each his own I guess. --~--~-~--~~~---~--~~ 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: Changing Acl database
> That did it, thanks very much. Off the top of your head, is there any > relatively complete documentation about the console switches > available? I haven't been able to find much console info in the > CakePHP.org docs. You're welcome. I've found the switch running "cake schema" and reading the provided help. Regards, - Dardo. --~--~-~--~~~---~--~~ 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: Alternatives to Security Component Authentication with cgi php
I was able to find a workaround using mod_rewrite (a module that continues to amaze me with its usefulness). So for anyone else who needs to use the http authentication methods of the Security Component while running php through cgi, here's what I did to get it working: In the .htaccess file in the webroot dir, I modified the default rewrite rule by removing the 'last' flag: old: RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] new: RewriteRule ^(.*)$ index.php?url=$1 [QSA] Then I added another RewriteRule below that one, giving it the 'last' flag I took away from the previous rule: RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L] This new rule sets the environment variable REMOTE_USER to the value of the HTTP Authorization header. With basic authentication, which is what I am using since I'm behind an SSL connection, the Authorization string consists of the word 'Basic', a space, and a base64 encoded string of the supplied username and password separated by a colon (:). Php adds this new environment variable to the $_SERVER superglobal array with the key 'REDIRECT_REMOTE_USER'. So, in my beforeFilter callback I've added the following code: if(Configure::read('in_production') { list($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']) = explode(':' , base64_decode(substr($_SERVER['REDIRECT_REMOTE_USER'], 6))); } Now the variables that the Security Component (and php) use for HTTP Authentication are set, which makes functionality that was only explicitly available in the apache php module also available in sites that have to use php through CGI/FastCGI mod_rewrite rocks. J3ffy On Fri, Sep 4, 2009 at 10:23 AM, J3ffy wrote: > I've been developing a system that does server-to-server communication > using Basic HTTP Auth for authentication behind an SSL connection. > The requests are created and sent with the HttpSocket class. The > component that receives the requests uses the Security component to > force and check authentication. > > Everything has been working great on multiple test systems, but on the > production host, none of the Authentication credentials were being > seen by the app. After a few hours of testing I discovered that on > all my test systems I'm using the Apache php module, but on the > production server, the php api is access through FastCGI. According > to the php documentation for HTTP authentication here: > http://us3.php.net/manual/en/features.http-auth.php the HTTP > authentication hooks are only available when using the apache module > and not for php through cgi. > > It seems that I'm going to have to change my approach to > authenticating, but I have no idea what to change it to. Do you folks > have any suggestions? --~--~-~--~~~---~--~~ 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: How is the difference between Model::query() and Model::execute()?
query() is used by you manually within your Models. execute() is called privately within the Model class. --~--~-~--~~~---~--~~ 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: Routing Plugins
Try adding 'plugin' => false to the array. On Sep 5, 2:01 am, Stefan wrote: > Hey hello i'm new to cakephp but i think it's a really cool thing to > learn and so fare all went well. But now I have a problem and i can't > figure it out by my self. > I have a plug in and I visit the plug in over the url pluginname/ > controller/action and i want to go back over a navigation menue that > is integrated in my standard layout to an url controller/action. That > fails because the html helper routes it to pluginname/controller/ > action what do i wrong? My html helper in the layout menu looks like > this > $html->link('controller'=>'users','action'=>'home'). > > I would be very kind if you could help me thanks in advance. --~--~-~--~~~---~--~~ 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: layzy loading
Here you go, this will do what your asking for model associations. http://www.pseudocoder.com/archives/2009/04/17/on-the-fly-model-chains-with-cakephp/ But yes, since it supports PHP 4 it wont do lazy loading, its a future feature. --~--~-~--~~~---~--~~ 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: Has anyone had success using Ext JS 2.2.2 and a grouping grid?
Hey wirtsi... Would you mind sending me your replies to the blog post via e-mail? For some reason I'm not picking them up. I'm very eager to get the grouping working in my project so I can show the customer. Thanks! On Sep 2, 10:47 am, FrederickD wrote: > Thanks for your reply! I am missing the replies to the blog post > though. I've experienced a long time lag between posts being approved > on the extjs.com/forum lately. I will check again periodicaly. > > I have changed the datastore over to the GroupingStore, but I am not > coding the field name correctly somehow. I need some assistance there. > It is good to know the Ext will take care of the rest. That is what I > was hoping for. > > I look forward to converting over to your tool very soon. Looking > forward to some tutorials on how to do various Ext functions. > > On Sep 1, 1:29 am, wirtsi wrote: > > > Hey Frederik > > > check out the replies I gave you on the blog post ... grouping is > > quite easy actually, all you need to do is change the datastore into a > > GroupingStore and give it a groupField (ie. what field to group by). > > Ext will take care of the rest ... > > > wirtsi > > --~--~-~--~~~---~--~~ 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: Automatically rendering element using RequestHandler - possible?
Well personal opinion I guess. Im against using ajax for pagination (for many obvious reasons), and for "tricking" google thinking its a page view, when it is not. To each his own I guess. --~--~-~--~~~---~--~~ 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: Send mail smtp
i had another problem with smtp and the email component is this a bug? or a problem on freenet.de? " Hi. This is the qmail-send program at mail.gmx.net. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. : 195.4.92.212_failed_after_I_sent_the_message./ Remote_host_said:_550_Syntax_error_in_header/ --- Below this line is a copy of the message. ... " it only happens with this domain all other user mails got transmitted any ideas why the headers could be messed up for this mail service? thx On 5 Sep., 16:32, brian wrote: > This isn't a Cake issue, it's DNS. Search google for that error and > you'll find some information about it (that's about all I can tell you > about it). > > But it may be simply that you have a typo: "smpt.1und1.de" should > probably be "smtp.1und1.de". > > On Fri, Sep 4, 2009 at 7:03 PM, Benedikt R. wrote: > > > Hi! > > > I get this error: > > php_network_getaddresses: getaddrinfo failed: nodename nor servname > > provided, or not known: 0 > > > This is my controller action: > > > function register( ) { > > if ( !empty($this->data) ) { > > $this->Email->smtpOptions = array( > > 'port' => '25', > > 'timeout' => '30', > > 'host' => 'smpt.1und1.de', > > 'username' => 'u...@domain.de', > > 'password' => '#' > > ); > > > $this->Email->sendAs = 'text'; > > $this->Email->delivery = 'smtp'; > > $this->Email->from = 'u...@domain.de'; > > $this->Email->to = 'u...@domain.de'; > > $this->Email->subject = 'User Registration'; > > $this->Email->send('Hello!'); > > $this->Session->setFlash('Message body!'); > > > $this->set('smtp_errors', $this->Email->smtpError); > > } > > } --~--~-~--~~~---~--~~ 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 is the difference between Model::query() and Model::execute()?
I looked up in cakePHP Manual 1.2 and 1.1, but not found the answer. Thanks in advance for any answer. --~--~-~--~~~---~--~~ 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: CakePHP 1.2 Missing Database Table
Oh boy, what a difference a night of sleep makes. I went to grab the model for my missing database table and the problem jumped right at me: var $useDbConfig = 'local'; was found at the top of the work.php model, I switched it to 'default' and voila, it worked. So *this* is another solution for the Missing Database Table problem as well. Thanks a lot guys, I hope this is helpful to a fellow newbie such as myself. On Sep 5, 4:34 am, Teh Treag wrote: > Are your database connection settings different on your production and > development servers? Do you have other models that work? > > On Sep 5, 1:55 am, mikeottinger wrote: > > > Hi All, > > > I just deployed the beginnings of a new site onto a little > > development space up on my host server. Everything works great in my > > local environment. But upon deploy, I see this: > > > Missing Database Table > > Error: Database table works for model Work was not found. > > > I've searched google, and almost every hit mentions clearing files out > > of tmp/cache/models and tmp/cache/persistent. I've done this, but it > > still gives me this error. The table it's complaining about is > > definitely there, I went to the MySQL admin section and saw it there. > > > Any ideas on this? > > > Oh, I'm running PHP5 as well. > > > Thanks in advance. --~--~-~--~~~---~--~~ 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: How to execute sql script from a component?
You need a model to use query() because it's a model method. On Sat, Sep 5, 2009 at 6:35 AM, cogitovn wrote: > > I create a new component. > I've known how to using a model from a component, by > ClassRegistry::init(). > For complex query, I can not use model. Instead, I write sql script > and execute it. But component doesn't support this method. > Anyone could tell me? > > > > --~--~-~--~~~---~--~~ 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: My behavior does not work with containable
Behavior methods of associated models are not triggered, unfortunately. On Sat, Sep 5, 2009 at 5:21 AM, schneimi wrote: > > Hi, > > I have created a simple behavior that can serialize (beforeSave) and > unserialize (afterFind) certain fields of a model. > > If I do an action directly on the model like $this->Model->find(...), > I get the unserialized data, but if I catch the Model fields with > containable like $this->OtherModel->contain('Model');$this->OtherModel- >>find(...);, the behavior isn't used at all and I only get the > serialized data. > > Is this a problem with my model setup, the containable behavior, or a > general limitation of behaviors? > > Thx, > Michael > > > --~--~-~--~~~---~--~~ 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: model method executed as sql query problem.
This can happen when Cake cannot locate the file for your model. Check that the file isnamed correctly: for MyModel the filename should be my_model.php. On Fri, Sep 4, 2009 at 11:27 PM, learning_cake_php wrote: > > well i dont know why cake behaves like this.. > i had model: > > class MyModel extends AppModel{ > . > . > //then i had a method > function myMethod(){ > . > . > } > > } > > when trying to call that method in my controller: > > class MyModelController extends AppController{ > > > > $this->MyModel->myMethod(); > > } > > cake is trying to execute it as an sql function thats why i got this > error invalid sql something.. > $this->MyModel->myMethod() is just a method used to pass data from my > controller to the model. > i had the same method on my other 2 models and it works fine only in > my third model cake interprets it as an sql function... > please help guys... > > > --~--~-~--~~~---~--~~ 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: Initial Install
Do you have a CakeInstall model? Is it named cake_install.php? Do you have a fdir_cake_installs DB table? Is that a name you provided for $useTable? What's CakeInstall model for, anyway? On Fri, Sep 4, 2009 at 9:54 PM, Scott Kustes wrote: > > Anyone? Does anyone know what I need to do to get this thing up and > running? > > On Sep 3, 9:14 pm, Scott Kustes wrote: >> Okay, this is probably the most simple, ridiculous question you've had >> on this group, but here goes...I downloaded the latest version of Cake >> and uploaded it to a directory on the server (LAMP). I cleared up the >> errors when accessing the root of the folder (http://lifespotlight.com/ >> fitnessdirectory/) and then tried to go >> tohttp://lifespotlight.com/fitnessdirectory/cake_install >> and I get this error: "Database table fdir_cake_installs for model >> CakeInstall was not found." >> >> But there's no other instruction on that page and I don't see how to >> get Cake to install a default setup. Any help? What did I miss? >> >> Thanks! >> Scott Kustes > > > --~--~-~--~~~---~--~~ 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: User-generated id column
I think it would be the simplest approach. On Fri, Sep 4, 2009 at 4:29 PM, McScreech wrote: > > Hello, > > I am converting an existing db to a web-based app. For most of the > tables I have created a standard auto-incrementing integer id column. > However, two of them have a pre-existing id column in the form 'AA- > DDD', where A is alpha, D is numeric and the hyphen is embedded. > > I am looking for a way to allow these self-generated id values to be > entered by the respective 'add' and 'edit' actions which normally hide > the 'id' column. > > I suspect this may be nigh on impossible and I should rename the > existing id column to something else (i.e. num), insert a normal auto- > incrementing integer id column and re-bake the affected tables. Is > this my only, perhaps my only _sane_, option? > > Thanx, McS. > > > > --~--~-~--~~~---~--~~ 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: Send mail smtp
This isn't a Cake issue, it's DNS. Search google for that error and you'll find some information about it (that's about all I can tell you about it). But it may be simply that you have a typo: "smpt.1und1.de" should probably be "smtp.1und1.de". On Fri, Sep 4, 2009 at 7:03 PM, Benedikt R. wrote: > > Hi! > > I get this error: > php_network_getaddresses: getaddrinfo failed: nodename nor servname > provided, or not known: 0 > > This is my controller action: > > function register( ) { > if ( !empty($this->data) ) { > $this->Email->smtpOptions = array( > 'port' => '25', > 'timeout' => '30', > 'host' => 'smpt.1und1.de', > 'username' => 'u...@domain.de', > 'password' => '#' > ); > > $this->Email->sendAs = 'text'; > $this->Email->delivery = 'smtp'; > $this->Email->from = 'u...@domain.de'; > $this->Email->to = 'u...@domain.de'; > $this->Email->subject = 'User Registration'; > $this->Email->send('Hello!'); > $this->Session->setFlash('Message body!'); > > $this->set('smtp_errors', $this->Email->smtpError); > } > } > > > > --~--~-~--~~~---~--~~ 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: 500 Internal Server Error
Hi keyser_soze83 When I have trouble problems to install cakephp on a server, I use this method and never fails: 1.- Create an Alias on httpd.conf Alias /cakesite /home/user/public_html/cakesite 2.- Edit all .htaccess. Add: RewriteBase /cakesite after "RewriteEngine on" and before of "Rewrite Rule" Saluos! On Sep 4, 4:17 pm, keyser_soze83 wrote: > Dear co-developers, > > I know this problem keeps on appearing quite a few times on the > groups, but anyway, after searching for a while, I did not found a > solution yet. > > Hopefully you can help me out here because I'm getting desperate. > > I've developed some site with cakephp 1.2, but on the domain there > were alread some blogs and photoalbums created in an earlier version > of the site. > > They were all accessible at: .domain.com > > Since I've installed cakephp for the new part of the site, these blogs > and albums are not accessible any more. > > I get: > Internal Server Error > The server encountered an internal error or misconfiguration and was > unable to complete your request. > Please contact the server administrator, supp...@one.com and inform > them of the time the error occurred, and anything you might have done > that may have caused the error. > > More information about this error may be available in the server error > log. > > I think I need to adjust the .htaccess file to allow accessibility on > these sub-domains. > > It currently looks like this: > > > RewriteEngine on > RewriteRule ^$ app/webroot/ [L] > RewriteRule (.*) app/webroot/$1 [L] > > > Can someone tell me what to do? > > Thanks in advance > Frank --~--~-~--~~~---~--~~ 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 to execute sql script from a component?
I create a new component. I've known how to using a model from a component, by ClassRegistry::init(). For complex query, I can not use model. Instead, I write sql script and execute it. But component doesn't support this method. Anyone could tell me? --~--~-~--~~~---~--~~ 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: CKEditor in combination with images controller
Hi Marco I needed something like what you want. I decided to convert "Encode Explorer" on a Controller. And extend it to where I need it. http://encode-explorer.siineiolekala.net/ Saluos! On Sep 4, 8:40 am, Marco wrote: > Hi guys, > > I'm wondering how I can combine CKEditor's image function with my own > image controller, responsible for managing image upload and image > detail data. My goal was to select from an image list provided by the > image controller from inside CKEditor's image dialog. But maybe this > is the wrong way. What would be the best practise? > > Thanks in advance. > Marco --~--~-~--~~~---~--~~ 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: Oracle & autoincrement : PROBLEM
Hi Xanax Try this http://bakery.cakephp.org/articles/view/increment-behavior Saluos! On Sep 4, 8:30 am, Xanax wrote: > Hi, > > I have a BIG problem. > > There is no autoincrement option in Oracle like in MySQL. > > Apparently, with CakePHP and Oracle, people use sequences and triggers > to bypass this. > > My problem : I can't use triggers on my database, it's forbidden by my > company. > And of course i don't want to replace all the "model->save()" methods > by their corresponding SQL request. > > Do you know what would be a good solution for me ? Thanks in advance --~--~-~--~~~---~--~~ 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: CakePHP 1.2 Missing Database Table
Are your database connection settings different on your production and development servers? Do you have other models that work? On Sep 5, 1:55 am, mikeottinger wrote: > Hi All, > > I just deployed the beginnings of a new site onto a little > development space up on my host server. Everything works great in my > local environment. But upon deploy, I see this: > > Missing Database Table > Error: Database table works for model Work was not found. > > I've searched google, and almost every hit mentions clearing files out > of tmp/cache/models and tmp/cache/persistent. I've done this, but it > still gives me this error. The table it's complaining about is > definitely there, I went to the MySQL admin section and saw it there. > > Any ideas on this? > > Oh, I'm running PHP5 as well. > > Thanks in advance. --~--~-~--~~~---~--~~ 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: Validation for FCK Editors field
bhushan, I think the problem is the text is not yet inside the textarea. Before you validate the value you can do this: get the content from fck: var oEditor = FCKeditorAPI.GetInstance(instancename); var contents = oEditor.GetXHTML(true); validate the var contents or copy the content into your element: document.getElementById('').value = contents I hope this helps On Sep 4, 7:18 am, bhushan A wrote: > Hi All, > > I have integrated fck editor in cakephp. But unable to apply JS > validation for that field. I have tried with > " document.getElementById('').value". But it is > showing blank value though i have entered sometext in it. Please > help. > You can mail me on bhushanahir...@gmail.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: How to completely disable database access?
Thanks for the link, that sorted it just fine. On Sep 4, 6:52 pm, majna wrote: > http://www.sanisoft.com/blog/2008/08/22/using-cakephp-without-a-datab... > > On Sep 4, 5:53 pm, DavidH wrote: > > > Hi All > > > I'm currently prototyping an application that's going to use a > > document database rather than an RDBMS. Couch DB is currently the > > favourite. > > > I'm building the prototype using CakePHP's Controller / View > > structures with a third party PHP library installed in Vendoirs to > > give me access to my document database. Therefore I don't have a > > database and no models. However CakepHP keeps insisting I have a > > database. First it complained there was no database.php file and when > > I created one it naturally complained it couldn't find the database. > > Even creating an empty class DATABASE_CONFIG { } didn't fix it as the > > " ConnectionManager requires a database connection" > > > Is there a way of switching off the database requirement altogether? > > I'm sure I read this somewhere; but I can't find it now. > > > Thanks > > > David --~--~-~--~~~---~--~~ 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: Automatically rendering element using RequestHandler - possible?
@Miles J Twitter do it already. I need to paginate through results and have a GA record of this. In old days it would have been multi pages, but these days clients expect it in AJAX and want the GA data, too... --~--~-~--~~~---~--~~ 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: Automatically rendering element using RequestHandler - possible?
@housebolt - unfortunately no I sometimes echo directly in controller and then exit, and sometimes use the requesthandler to render my layout (with no layout specified, I guess) Perhaps if requestHandler uses the ajax layout in the cake/lib/views/ layouts/ directory, I could amend that, but then if we upgrade cake, those changes get overwritten. --~--~-~--~~~---~--~~ 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: Automatically rendering element using RequestHandler - possible?
@housebolt - unfortunately no I sometimes echo directly in controller and then exit, and sometimes use the requesthandler to render my layout (with no layout specified, I guess) Perhaps if requestHandler uses the ajax layout in the cake/lib/views/ layouts/ directory, I could amend that, but then if we upgrade cake, those changes get overwritten. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Routing Plugins
Hey hello i'm new to cakephp but i think it's a really cool thing to learn and so fare all went well. But now I have a problem and i can't figure it out by my self. I have a plug in and I visit the plug in over the url pluginname/ controller/action and i want to go back over a navigation menue that is integrated in my standard layout to an url controller/action. That fails because the html helper routes it to pluginname/controller/ action what do i wrong? My html helper in the layout menu looks like this $html->link('controller'=>'users','action'=>'home'). I would be very kind if you could help me thanks in advance. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
My behavior does not work with containable
Hi, I have created a simple behavior that can serialize (beforeSave) and unserialize (afterFind) certain fields of a model. If I do an action directly on the model like $this->Model->find(...), I get the unserialized data, but if I catch the Model fields with containable like $this->OtherModel->contain('Model');$this->OtherModel- >find(...);, the behavior isn't used at all and I only get the serialized data. Is this a problem with my model setup, the containable behavior, or a general limitation of behaviors? Thx, Michael --~--~-~--~~~---~--~~ 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: CakePHP 1.2 Missing Database Table
please post your model and database structure for us to envistigate; ) On Sep 4, 11:55 pm, mikeottinger wrote: > Hi All, > > I just deployed the beginnings of a new site onto a little > development space up on my host server. Everything works great in my > local environment. But upon deploy, I see this: > > Missing Database Table > Error: Database table works for model Work was not found. > > I've searched google, and almost every hit mentions clearing files out > of tmp/cache/models and tmp/cache/persistent. I've done this, but it > still gives me this error. The table it's complaining about is > definitely there, I went to the MySQL admin section and saw it there. > > Any ideas on this? > > Oh, I'm running PHP5 as well. > > Thanks in advance. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
cake cant find model's method!!!
well here i am again..actually i removed the original post and edited it so that it will be clearer to all of us: here we go: i just try to explain the problem after theses snippets of code: db structure: 1. model1 -id 2. model2 -id 3. model1_model2 -id -model1_id -model2_id model: class Model1 extends AppModel{ var $name='Model1'; ... ... ... function model1Method(){ } } class Model2 extends AppModel{ var $name='Model2'; ... ... ... function model2Method(){ } } class Model1Model2 extends AppModel{ var $name='Model1Model2'; ... ... ... function model1Model2Method(){ } } controller: class MyController extends AppController{ var $uses=array('Model1','Model2','Model1Model2'); function dispModel1(){ $this->Model1->model1Method(); //works fine } function dispModel2(){ $this->Model2->model2Method(); //works fine } function dispModel1Model2(){ $this->Model1Model2->model1Model2Method(); //doesnt work.. error: SQL Error: 1064: You have an error in your SQL syntax } } --- so the problem is cake cant find the model's method instead cake executes it as an sql query. the actual name of my model is EnrolleesOfferedSubject with a table name of enrollees_offered_subjects.. why is it that cake cant find any method i placed in my EnrolleesOfferedSubject model? is it maybe because of my models name? because other model with only one word on it works just well... and one thing, EnrolleesOfferedSubject's model methods can be executed using EnrolleesOfferedSubjectController only but cant be executed OnAnyOtherController... please help me guys..enlighten me..im really stuck! --~--~-~--~~~---~--~~ 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 use Ajax helper and Javascript helper to do js file?
Hi I have noted that in my page I use heavily the ajax helper and javascritpt helper. Now I would move all this code generating by these helpers in a single js file (inside webroot). My question is what is the way (the best way) for to this? More precisely I would continue to use Ajax helper and Javascript helper but to product javascript file I hope that I explained . I aspect advice --~--~-~--~~~---~--~~ 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: Security salt
Yes, why would you change your salt value? --~--~-~--~~~---~--~~ 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: How to stop html->link helper adding line breaks
As explained in the OP, it always renders a space after the link, which is not good if you want a fullstop or a comma straight after the link. On Sep 1, 5:03 pm, brian wrote: > Glad to help. But how is it a problem? Is that causing display issues > somehow? It shouldn't, AFAIK. > > On Tue, Sep 1, 2009 at 8:17 AM, WebbedIT wrote: > > > brian, you are a class act ... of course I used that little helper, > > doh! Will just have to remove that helper when I put the site into > > production I suppose. > > > Thanks for pointing out what should have been obvious :) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---