Re: Ajax Pagination cakePHP 1.3 and jQuery

2010-08-03 Thread ecommy.com
This is a common problem - and is because jquery doesn't work similar with prototype when it comes to executing ajax code inside a page that was requested by ajax jquery has live event feature to acomplish that copy cake/libs/view/helpers/jquery_engine.php to app/views/helpers/jquery_engine.php n

Re: validate field or field

2010-08-03 Thread rez...@gmail.com
many thanx Nabil many thanx Dr.loboto 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@googleg

Re: bake tool problem

2010-08-03 Thread Hugo M
Don't support foreign keys either :P 2010/8/3 Poliane Brito > Hey! But MyISAM tables don't support transactions. Take care. > > > On Tue, Aug 3, 2010 at 2:05 PM, Hugo M wrote: > >> Hi! Mm... strange. I have errors like that with the inverse problem (when >> I have tables that uses foreign keys

Re: Autocomplete, can't find $this->data?

2010-08-03 Thread Louie Miranda
*Solved it!* I can't seem to debug($this->data), so I debug($this->params); And found the solution. $this->params['form']['q']; Instead of $this->data['q'] Which is not working. Regards, -- Louie Miranda - Email: lmira...@gmail.com - Web: http://www.louiemiranda.com On Wed, Aug 4, 2010

Autocomplete, can't find $this->data?

2010-08-03 Thread Louie Miranda
I tried the ajax autocomplete manual. http://book.cakephp.org/it/view/1370/autoComplete *PROBLEM:* 1. I can't seem to query $this->data['q']; 2. Therefore, the auto complete list shows, everything. And not the specific keyword or "q" value. How will I query $this->data['q'];? I think, I

bake can't create view files(ctp files)

2010-08-03 Thread leafchild
I tried to bake files. controller, model file can be baked but not view files. Bake create only folder in view directory and there is no ctp file there. While baking, I'm getting there errors: Warning: touch(): SAFE MODE Restriction in effect. The script whose uid is 10001 is not allowed to acce

SQL quert on app_controller.php ?

2010-08-03 Thread Алексей Шишкин
I need to execute an SQL query that takes data from two tables with file app_controller.php Tell my how to do this? 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

Re: bake tool problem

2010-08-03 Thread Poliane Brito
Hey! But MyISAM tables don't support transactions. Take care. On Tue, Aug 3, 2010 at 2:05 PM, Hugo M wrote: > Hi! Mm... strange. I have errors like that with the inverse problem (when I > have tables that uses foreign keys and engine is not set to InnoDB). The > only thing I know MyISAM has and

Table synonyms in SQL Server 2008

2010-08-03 Thread Bruce
I have a working app, which I am moving into a new DB engine. In its new location, one of the tables will be linked as a synonym from another engine. I can query the table from Management Studio... SELECT * FROM tablename; At the present stage of development, I only have ths one table in the DB s

Re: Sending StatusMails by CronJob - what is the right approach?

2010-08-03 Thread DigitalDude
Hey, that makes perfectly sense and I think I would prefer this one, too. There are two things I'm worried about: 1) I will need some sort of authentication to prevent calling those actions from direct access by url (sort of www.mydomain.com/news/generateStatusReport or else...). When called fro

Ajax Pagination cakePHP 1.3 and jQuery

2010-08-03 Thread bradmaxs
I have set up pagination following the Mark Story article and it seems to work fine EXCEPT my next, previous and number links are not updating. If I click on next after the first page load, it goes to the next comment (cool), however the next link does not update to the third page and just stops w

RE: Sending StatusMails by CronJob - what is the right approach?

2010-08-03 Thread Johnathan Iannotti
Why not put all of your logic within the model/controller and then call that from the shell script/cron job you have going? That way you could access those methods from the app and not just the shell script. Doesn't make sense to separate that kind of logic.. -Original Message- From:

Configuring a Production Enviroment

2010-08-03 Thread Leandro
Im configuring my application in the production enviroment (Hostmonster.com) and i would like to know if there is any vulnerability letting the APP folder inside the WEBROOT? Also i would like to ask if there is any official "encreasing performance tips" for CakePHP? Rather than indexing the colum

Sending StatusMails by CronJob - what is the right approach?

2010-08-03 Thread DigitalDude
Hey, I read uncountable articles now and tried really hard to get this to work, but I just can't figure out how to solve this problem: Let's say I want to write a cronjob that will check every sunday what's new in a database and sends an overview of things that are still to do to the users of my

sending multiple email

2010-08-03 Thread fadhli
hi everyone. i want to send email to all my client, the email contains client data, so the email different between the client. how to send email to all client at ones? i have read http://book.cakephp.org/view/1285/Sending-Multiple-Emails-in-a-loop but i don't know how to repeat sending email in my

Re: How to appreciate cakePHP - try the Zend Framework quickstart

2010-08-03 Thread Miles J
For one thing, you cant configure Cake like you would Zend. Cake uses the "convention over configuration" approach while Zend is "configuration over convention". There is a reason why all of Zends classes are decoupled from each other... its so that you can configure it any way possible. You canno

Re: bake tool problem

2010-08-03 Thread Hugo M
Hi! Mm... strange. I have errors like that with the inverse problem (when I have tables that uses foreign keys and engine is not set to InnoDB). The only thing I know MyISAM has and InnoDB no are fulltext indexes (but maybe there's other things I don't know). Good luck! 2010/8/3 amititi > thank

Re: Possible New CakePHP Stacoverflow.com style Q&A site, SO VOTE UP!

2010-08-03 Thread Miles J
Haha yeah, youre a ways behind :P On Aug 3, 6:32 am, "Larry E. Masters" wrote: > Already way ahead of you on this... > > http://cakeqs.org > > -- > Larry E. Masters > > On Tue, Aug 3, 2010 at 5:02 AM, Amir wrote: > > Hello CakePHP Community, > > > I have just made a proposal on the Stackexchange

Re: bake tool problem

2010-08-03 Thread amititi
thanks i dicovered the problem, the engine was set to innoDB , i switched to myisam and worked , don't know why but it's ok , many thanks On Aug 3, 7:58 pm, Hugo M wrote: > What are you doing seems to be ok, can you post the file content? > > You could search in Google for errno: 121 + MySQL > >

Re: bake tool problem

2010-08-03 Thread Hugo M
What are you doing seems to be ok, can you post the file content? You could search in Google for errno: 121 + MySQL 2010/8/3 amititi > > it's not a bake comand sorry i'm a new at this , but after i baked the > firs step , and it say's i can't connect to the database in the > browser , i go in t

Re: Using & in URL as unnamed param

2010-08-03 Thread AD7six
On Aug 3, 5:23 pm, Rodrigo Mourão wrote: > I already try this and not work. It seems fair to assume you're using apache, ere's a big hint http://www.google.com/search?hl=en&q=mod_rewrite+decodes+before+rewrite&aq=f&aqi=m1&aql=&oq=&gs_rfai= Check out the new CakePHP Questions site http://cakeq

Re: Using & in URL as unnamed param

2010-08-03 Thread Rodrigo Mourão
I already try this and not work. See the result Array ( [pass] => Array ( [0] => home [1] => P ) [named] => Array ( ) [plugin] => [controller] => pages [action] => display [form] => Array ( ) [url] => Array ( [url] => pages/home/P [B] => ) [isAjax] => ) On 3 ago, 09:55, Norm

Re: validate field or field

2010-08-03 Thread Dr. Loboto
You can setup normal validation for each of OR fields (with allowEmpty = true) and check validation status for both in beforeSave. Return false if both are invalid or empty and true in other case. On Aug 3, 8:25 pm, "rez...@gmail.com" wrote: > hi > I have a form with three fields and I need to va

Determine to insert or update data in beforeValidate().

2010-08-03 Thread Lapinski
In cake 1.2, I have some logic in beforeValidate() to determine the data going to be saved should be inserted (new record), or updated (by setting $model->id within beforeValidate()). Everything works fine. Now I am migrating to cake 1.3, but it doesn't work anymore. If I don't set $model->id t

Re: validate field or field

2010-08-03 Thread Nabil Alsharif
There is no OR operation when validating fields... I think your two options are to either not require the filed, i.e 'required'=>false as part of your rule or to write a custom validator function to do what you want. On Tue, Aug 3, 2010 at 8:25 AM, rez...@gmail.com wrote: > hi > I have a form wit

Re: bake tool problem

2010-08-03 Thread amititi
it's not a bake comand sorry i'm a new at this , but after i baked the firs step , and it say's i can't connect to the database in the browser , i go in the command line and i wrote "mysql - u - p " then "mysql> create database cakecms " then "mysql> cakecms" the "mysql>source C:\xampp\htdocs \c

Re: bake tool problem

2010-08-03 Thread Hugo M
source is a bake command? I do know source MySQL command 2010/8/3 amititi > I'm in the command line, i just created a new database to work with > and i want to insert a table in it, i write :"source C:\xampp\htdocs > \cakecms.sql " and it returns this errror : "ËRROR 1005 : Can't > create table

bake tool problem

2010-08-03 Thread amititi
I'm in the command line, i just created a new database to work with and i want to insert a table in it, i write :"source C:\xampp\htdocs \cakecms.sql " and it returns this errror : "ËRROR 1005 : Can't create table cakecms.posts ". Can anybody tell me what this means ??? i would apreaciate it thanks

Re: Possible New CakePHP Stacoverflow.com style Q&A site, SO VOTE UP!

2010-08-03 Thread Larry E. Masters
Already way ahead of you on this... http://cakeqs.org -- Larry E. Masters On Tue, Aug 3, 2010 at 5:02 AM, Amir wrote: > Hello CakePHP Community, > > I have just made a proposal on the Stackexchange site staging website > for the creation of a new CakePHP Q&A site which will work just the > w

Possible New CakePHP Stacoverflow.com style Q&A site, SO VOTE UP!

2010-08-03 Thread Amir
Hello CakePHP Community, I have just made a proposal on the Stackexchange site staging website for the creation of a new CakePHP Q&A site which will work just the way stackoverflow.com works. If you guys like stackoverflow.com (which developer doesn't) then lets make this happen. Head on over to:

validate field or field

2010-08-03 Thread rez...@gmail.com
hi I have a form with three fields and I need to validate it I just need if user fill any field the form submit successfully and if he doesn't fill any field validation error appears I want to make this with model validation but I can't find thing to act like OR Check out the new CakePHP Questions

Re: Backend best option

2010-08-03 Thread keymaster
> we usually do two full installs of cake so that things are fully separated Don't understand why you'd want two copies of your code. What is it that has you so worried, you are bending over backwards to protect? > The biggest benefit in my opinion, though is that you can work on > admin function

Re: loginRedirect

2010-08-03 Thread cricket
On Mon, Aug 2, 2010 at 9:36 PM, Alexsandro wrote: > Hello guys! > > Well I'm doing an application where after I log in I want to be > directed to a standard module. But I'm with a doubt in loginRedirect > where I Seto code $ this-> Auth-> loginRedirect = array ('controller' > => 'users', 'action'

Re: how to combine modalbox and javascript with cake?

2010-08-03 Thread cricket
On Mon, Aug 2, 2010 at 6:25 PM, Persivo Cunha wrote: > Hi, Everyone > > So, i have my modalbox working perfectly with cakephp, but when i put > scripts (

Re: Controller not working on live site

2010-08-03 Thread meekamoo
Found the problem! Even though I had disabled cakephp using APC in the core.php I forgot that it was still enabled in the php.ini. Disabling that fixed it. Not sure why it broke it but at least now I know. On Aug 2, 3:35 pm, meekamoo wrote: > Hmm, don't have any custom joins in any arrays. Whol

Re: Backend best option

2010-08-03 Thread cricket
On Mon, Aug 2, 2010 at 2:17 PM, Hugo M wrote: > Mmm yeah probably you are right because I'll need to repeat some models, but > there's alot of data I don't need in admin that is in real app You don't have to fetch all the same data in admin actions as with regular ones. Check out the new CakePHP

Re: URL shortener - any way to not redirect but display specific page?

2010-08-03 Thread cricket
On Mon, Aug 2, 2010 at 1:35 PM, spheroid wrote: > I am using a URL shortener controller which can take a URL such as: > > http://mysite/this-is-a-sample-page-23.html > > and redirect to another page like: > > http://mysite/controller/action/23 > > Any way to have it effectively go to that page, bu

Re: Using & in URL as unnamed param

2010-08-03 Thread Norman Paniagua
With the js function escape I get %26 Try in firebug or other javascript console to execute escape('&') --- Norman Paniagua 2010/8/3 Rodrigo Mourão > Hello, > > I trying to use url: http://localhost/appname/pages/Black&White , but > the CakePHP try to load the page black.ctp. > print_r($thi

Re: individual ID's for user profiles

2010-08-03 Thread Norman Paniagua
If your url is www.mysite.com/users/profile/34nnm234n2412234d You are telling to cake that the controller is Users, the action is profile, and the hash there is a parameter, then in your function you must define the var name of the parameter like

Re: Backend best option

2010-08-03 Thread tracyfloyd
We typically do a separate admin site on a subdomain. The two sites can sometimes get quite complex and its just cleaner to separate the two. The biggest benefit in my opinion, though is that you can work on admin functionality without having to worry so much about touching/ bringing down the publi

Re: HABTM

2010-08-03 Thread james livsey
Thanks! I thought that would be the case but i didnt want to miss a trick later on in development. On Tue, Aug 3, 2010 at 11:39 AM, Anthony wrote: > No. In the same sense that you don't need to create controllers or > views for DB models you won't be directly interfacing with. > > On Aug 2, 9:4

Re: HABTM

2010-08-03 Thread Anthony
No. In the same sense that you don't need to create controllers or views for DB models you won't be directly interfacing with. On Aug 2, 9:45 am, james wrote: > Just out of interest, I haent done much with habtm relationships yet > (they're a bit messy!) but its unavoidable. That being the case,

Using & in URL as unnamed param

2010-08-03 Thread Rodrigo Mourão
Hello, I trying to use url: http://localhost/appname/pages/Black&White , but the CakePHP try to load the page black.ctp. print_r($this->params), it only get Black in $this->params['pass'][0] I try use a urlencode in &, but not work. How can I get the Black&White? Best regards Rodrigo Check ou

individual ID's for user profiles

2010-08-03 Thread Tomfox Wiranata
hi, thats, what keeps me busy at the moment. if you click on a profile on facebook you see an individual id in the adress bar. that makes sense. on my website its similar. each user has an ID wich is created at registration. now when i am logged and i wanna go to a profile, it HAS to be opened wi

Re: Backend best option

2010-08-03 Thread Andy Gale
On Mon, Aug 2, 2010 at 6:27 PM, mike karthauser wrote: > hi hugo > making one application with front end and backend functionality is far > superior to creating and maintaining two apps. > it seems you might benefit from reading book.cakephp.org > mikek Definitely from a code generation point of

Re: Backend best option

2010-08-03 Thread keymaster
Create a separate admin.ctp layout, with associated js, css, images, etc. Bake your controllers and models without admin_ operations. Create generic admin_xxx crud functions in appController. Create a single admin_index element used by all controllers. Use admin routing to require a login as admini

Re: Trouble with using a condition on a related model

2010-08-03 Thread dean
Thanks for the replies guys. It's kind of silly that it doesn't provide the associations for hasMany by default when you would think so. What would be the most logical reason for this? Also, if I unbind an association at the Model level, I assume that all further calls for the Model within Contro