Re: W3C validation

2008-04-18 Thread Mech7
You can call the helper in only the views where they are needed. On Apr 19, 6:29 am, Lakshmi <[EMAIL PROTECTED]> wrote: > Hi, > > Thanks for this. > > The head, body and footer have been seperated in our portal.  Hence if the > script is called in the head, it would be called in all pages (even w

@Sliv: One link is missing in "FAQ" page?

2008-04-18 Thread R. Rajesh Jeba Anbiah
One link seems to be missing in the FAQ page http://groups.google.com/group/cake-php/web/faq under "How to handle tricky HasAndBelongsToMany situations?". If you have access to the previous Frequent Discussions page, can you check what link it is? -- Email: rrjanbiah-at-Y!comBlog: http://

Re: W3C validation

2008-04-18 Thread Lakshmi
Hi, Thanks for this. The head, body and footer have been seperated in our portal. Hence if the script is called in the head, it would be called in all pages (even where the script is not required) which would make it very heavy. We want a way where it is called in the body, but where we can ens

Re: Controllers without Views

2008-04-18 Thread Fred Hirsch
This is just opinion (I am not a core developer), please take it with a grain of salt: The framework includes the view functionality, testing it as a benchmark without the view is not a valid test (in my opinion). The only thing you are testing by doing this within a controller is to test the

Re: Problem with $ajax->submit

2008-04-18 Thread b logica
Are you sure that 'loaded' is appropriate? Are you loading anything into the page? Try 'success' instead. On Fri, Apr 18, 2008 at 9:55 PM, MB <[EMAIL PROTECTED]> wrote: > > Here is my submit button -- > > print $ajax->submit('Save', array('url' => '/klasses/addlink', > 'loaded'=>'closesubject(

Re: CakePHP with directory password protection?

2008-04-18 Thread b logica
Assuming the grades directory is outside the app directory then it should suffice to change just the one .htaccess file as the others won't be seen if a request for /grades arrives (it won't be redirected into /app). On Fri, Apr 18, 2008 at 10:59 PM, Sourabh Sharma <[EMAIL PROTECTED]> wrote: > >

Re: W3C validation

2008-04-18 Thread b logica
If you're using $javascript->link('some_script') change it to $javascript->link('some_script', false) so that the script tag is written to the head rather than inline within the body. Of course, whether or not this breaks your scripts depends on how they were written. If they do break, you should

debug save() failure

2008-04-18 Thread b logica
The add() method of one of my controllers has stopped working. I've tried logging $this->data immediately after the save failure and it looks fine. There's nothing different about the database--this was working great. I have a feeling that this is related to a behavior (Attachment, I'm looking at

W3C validation

2008-04-18 Thread Lakshmi
Hi, We are trying to achieve W3C valid pages and have minimal errors on the pages on our portal. We are using javascript and cakephp. What happens is due to the script tags being embedded we get many W3C validation errors. The page gets slower due to this and throughput is low. Could someone he

Re: CakePHP with directory password protection?

2008-04-18 Thread Sourabh Sharma
In app folder of cake PHp we have 3 .htaccess files one is in root, second is in app folder and third is in webroot folder. if you are changing one .htaccess file then you have to change other also accordingly i think so . Thanks & Regards Sourabh sharma On Apr 19, 7:16 am, "b logica" <[EMAIL PR

Re: Controllers without Views

2008-04-18 Thread Sourabh Sharma
yeah you can create a controller without any view, you can easy put the view in the controller also. But that is the bad practice and then what is the benifit of MVC structure. We can do anything of own with cakePHP but if we follow the instruction of structure then performance of our application

Re: Best practice for setting current user variable?

2008-04-18 Thread Sourabh Sharma
I don't understand the question but if you want to say that you want to access the which user sis logged in then you have to create afunction for log in the APP Controller file, then you can access easily in the whole controller because we extends the very controller to APPController. Please expl

Problem with $ajax->submit

2008-04-18 Thread MB
Here is my submit button -- print $ajax->submit('Save', array('url' => '/klasses/addlink', 'loaded'=>'closesubject()')); The save works but the 'closesubject()' function which is a javascript doesnt ever seem to get called. Here is the javascript: function closesubject(form) { window.

Re: CakePHP with ExtJS

2008-04-18 Thread Timmy Crawford
I've built my CMS back-end using extjs and cake as well. Like those above, I leverage the model quite a bit, and have a helper that does all the grunt work for creating grids, tab panels, etc. I personally don't use the ext forms at all as I have run into some scenarios where they limit my abili

Controllers without Views

2008-04-18 Thread Wizardry
Is it possible to have a controller that prints a simple 'Hello World' without having an underlying index view? In case anyone is wondering why would I want such a thing, well I wanted to test the performance of the CakePHP framework and wished to know the differences in response time for the con

Re: CakePHP with directory password protection?

2008-04-18 Thread b logica
You shouldn't use 2 blocks like that. Try this: RewriteEngine On RewriteBase / RewriteRule ^/grades - [L] RewriteRule ^$ app/webroot/[L] RewriteRule (.*) app/webroot/$1 [L] On Fri, Apr 18, 2008 at 4:15 PM, Jon <[EMAIL PROTECTED]> wrote: > > I have CakePHP installed, and na

Re: 1.2 HABTM - Anyone actually get this working in a real world application with additional fields in the link table?

2008-04-18 Thread b logica
On Fri, Apr 18, 2008 at 5:54 PM, James K <[EMAIL PROTECTED]> wrote: > > I've been bashing my skull against the wall all day trying to get a > HABTM relationship to save correctly... Welcome to CakePHP. I think this is the single most frustrating thing to get done right. However, it works great

Re: How to prevent escaping of numbers for ORDER BY?

2008-04-18 Thread Fred Hirsch
I think someone may have answered this, but its better to use a column alias in the select clause and then utilize that alias for your ordering. An example: select id, (count_something * 0.1) + (something_else * 0.8) as count_order from my_table where blah = 'blah' order by coun

Re: Best practice for setting current user variable?

2008-04-18 Thread b logica
I store a $user array in the Session upon login and then read() it in whichever methods I need some bit of info (mostly the ID, of course). On Fri, Apr 18, 2008 at 7:39 PM, John R <[EMAIL PROTECTED]> wrote: > > How do you all set the current user per controller? > > > --~--~-~--~~-

Re: More of an SQL question ... having a hard time with this statement

2008-04-18 Thread b logica
No need for a timestamp if the revision_id is a SERIAL (or AUTO_INCREMENT or whatever). I think you're thinking of something more along the lines of: SELECT user_id, revision_id FROM the_table ORDER BY revision_id, user_id DESC LIMIT 15; Including the user_id in ORDER BY clause allows for overl

Re: More of an SQL question ... having a hard time with this statement

2008-04-18 Thread b logica
SELECT user_id, MAX(revision_id) FROM YOUR_TABLE GROUP BY user_id LIMIT 15; On Fri, Apr 18, 2008 at 6:10 PM, John R <[EMAIL PROTECTED]> wrote: > > In this app, users can upload photos, and then revise them. > > The app stores a log of all revisions so they can easily go back to > them. > > Th

Re: model query indexes by a letter

2008-04-18 Thread Fred Hirsch
Your column prefixes are used by the record parser to build the result set array. If you changed it as follows (formatting added for clarity only): SELECT i.id, i.client_id, ifnull(total,'0') as i.total_due, ifnull(i.due,'NA') as i.due_date, ifnull(sum(p.amoun

Methods of serving images from plugins

2008-04-18 Thread Max
>From last few days, I was trying to create plugins which will have CSS/ JS/Images inside them. I tried .htaccess way, it might work, but that is something which I dont want to implement as that would be a hack. So basically, I am not able to find any good solution for the same. Is anybody here

Re: Question about Model::save() and its beforeSave and afterSave callbacks

2008-04-18 Thread Fred Hirsch
I dug a bit deeper and found this buried in the save: if (!empty($joined) && $success === true) { $this->__saveMulti($joined, $this->id); } What this does is prior to the main record save, an array called $joined is populated with your relationships from the calling model (I believe it was

Best practice for setting current user variable?

2008-04-18 Thread John R
How do you all set the current user per controller? --~--~-~--~~~---~--~~ 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

Re: More of an SQL question ... having a hard time with this statement

2008-04-18 Thread Robert
I would add a time field to the database record for each revision. Then order by descending time and limit your query to 15 rows. (You can order by descending revision_id also, but once you have many users you could easily have more than 15 records where the greatest revision_id's are equal, and

1.2 HABTM - Anyone actually get this working in a real world application with additional fields in the link table?

2008-04-18 Thread James K
I've been bashing my skull against the wall all day trying to get a HABTM relationship to save correctly... Here's the setup: Member hasOne Account Member hasAndBelongsToMany Address This is set up so a member may specify both a permanent address and a mailing address (if "different than above"

Re: More of an SQL question ... having a hard time with this statement

2008-04-18 Thread jonknee
> Any help? SELECT user_id, MAX(revision_id) FROM your_table GROUP BY user_id --~--~-~--~~~---~--~~ 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 unsub

Re: More of an SQL question ... having a hard time with this statement

2008-04-18 Thread jonknee
> Any help? SELECT user_id, MAX(revision_id) FROM ck GROUP BY user_id --~--~-~--~~~---~--~~ 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

More of an SQL question ... having a hard time with this statement

2008-04-18 Thread John R
In this app, users can upload photos, and then revise them. The app stores a log of all revisions so they can easily go back to them. The database has: user_id and revision_id I am trying to write a statement that grabs only the 15 latest (highest #) revisions for all users. So .. if the table

Re: Wierd Parse error

2008-04-18 Thread R. Rajesh Jeba Anbiah
On Apr 19, 2:23 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Can someone help me out, the following code gives me a parse error but > I don't know why > > class Benefactor extends AppModel { > var $name = 'Benefactor'; > //var $testA =strtotime(date("n/1/Y")); > var $hasMany

Re: CakePHP ACL and database naming conventions

2008-04-18 Thread Jee
> "Because they are" probably isn't the answer you had in mind, right? > > The tables used by the ACL have been named that as long as I can > remember, and I guess you're right when you state that they don't seem > to follow the standard for alphabetical precedence in join tables. > > Does it real

Re: CakePHP ACL and database naming conventions

2008-04-18 Thread R. Rajesh Jeba Anbiah
On Apr 19, 2:22 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On Fri, Apr 18, 2008 at 5:15 PM, R. Rajesh Jeba Anbiah > > <[EMAIL PROTECTED]> wrote: > > > > So, why are the tables named thus? > > > acos > > > aros > > > aros_acos > > "Because they are" probably isn't the answer you had in mi

Re: Session : Single Sign on from other application

2008-04-18 Thread Nelson Cysneros
have you looked at this thread? getting cake DB session to an external application: http://groups.google.com/group/cake-php/browse_thread/thread/5a868ad24cff1c83/3127e7971078becf?lnk=gst&q=cysneros#3127e7971078becf On Apr 18, 1:40 am, acl68 <[EMAIL PROTECTED]> wrote: > Hello everybody, > > I wa

Re: Grails madness??

2008-04-18 Thread R. Rajesh Jeba Anbiah
On Apr 19, 2:16 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I've been learning grails and I came across the following code that I > assume is standard because it's auto-generated by grails "bake" > equivalent: > > name="user.id" value="${post?.user?.id}" > > > This is basically groovy's

Wierd Parse error

2008-04-18 Thread [EMAIL PROTECTED]
Can someone help me out, the following code gives me a parse error but I don't know why class Benefactor extends AppModel { var $name = 'Benefactor'; //var $testA =strtotime(date("n/1/Y")); var $hasMany = array( 'Picture', 'Blog', 'QuestionTo' => array( 'cl

Re: CakePHP ACL and database naming conventions

2008-04-18 Thread Chris Hartjes
On Fri, Apr 18, 2008 at 5:15 PM, R. Rajesh Jeba Anbiah <[EMAIL PROTECTED]> wrote: > > > > So, why are the tables named thus? > > acos > > aros > > aros_acos "Because they are" probably isn't the answer you had in mind, right? The tables used by the ACL have been named that as long as I can

Re: Session : Single Sign on from other application

2008-04-18 Thread R. Rajesh Jeba Anbiah
On Apr 18, 1:40 pm, acl68 <[EMAIL PROTECTED]> wrote: > Hello everybody, > > I was programming an application with Cake and all was well ;-) > Then my colleague and I had the idea to share the login procedure with > the applications he is maintining, so that the login in his > application and the i

Grails madness??

2008-04-18 Thread [EMAIL PROTECTED]
I've been learning grails and I came across the following code that I assume is standard because it's auto-generated by grails "bake" equivalent: This is basically groovy's equivalent of $form->input where from is the "options" tag in cake. The thing that really seems like bad news is that User

Re: CakePHP ACL and database naming conventions

2008-04-18 Thread R. Rajesh Jeba Anbiah
On Apr 19, 1:56 am, Jee <[EMAIL PROTECTED]> wrote: > According to the Cake 1.2 manual: "Join tables, used in > hasAndBelongsToMany relationships between models should be named after > the model tables they will join, in alphabetical order (apples_zebras > rather than zebras_apples). If your applic

Re: How to view all Cake queries?

2008-04-18 Thread R. Rajesh Jeba Anbiah
On Apr 18, 8:05 pm, grigri <[EMAIL PROTECTED]> wrote: > Write the sql queries to a text log file. > > I created a custom datasource to allow syntax hilighting of the sql > log and file-based logging. > > More details in this > thread:http://groups.google.com/group/cake-php/browse_thread/thread/96

Re: i18n in cakephp

2008-04-18 Thread R. Rajesh Jeba Anbiah
On Apr 18, 10:19 pm, "b logica" <[EMAIL PROTECTED]> wrote: > 2008/4/17 robert123 <[EMAIL PROTECTED]>: > > Hi, I want to develop website using cakephp in Chinese and English > > using utf8 encoding I am trying to use cakephp 1.2 version, I have > > been searching around the web on the docs on i

CakePHP ACL and database naming conventions

2008-04-18 Thread Jee
According to the Cake 1.2 manual: "Join tables, used in hasAndBelongsToMany relationships between models should be named after the model tables they will join, in alphabetical order (apples_zebras rather than zebras_apples). If your application features this type of relationship between your Tag a

Re: Paginate on the other model?

2008-04-18 Thread Mech7
Ok i have found a way posted on the bin.. http://bin.cakephp.org/saved/21775 THe problem is when i know do a paginate on the Tag model itself this function will override the deault thus i wont get any result back :( On Apr 16, 2:32 pm, MonkeyGirl <[EMAIL PROTECTED]> wrote: > > but how can ipagin

Re: $form->input() takes 'label' argument, what about $form->textarea()?

2008-04-18 Thread 703designs
Nevermind, that's automatically managed. On Apr 18, 4:05 pm, 703designs <[EMAIL PROTECTED]> wrote: > OK, great. Also, how do I assign a value to $form->hidden? I'd like to > update the "created" time of my tasks to NOW()... > > On Apr 18, 3:51 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote:

Re: Rendering element from controller

2008-04-18 Thread Andrew Assarattanakul
With CakePHP v1.2.0.6311 you can do $this- >render(null,null,DS.'elements'.DS.'example'); to use the default layout along with your element. On Apr 15, 3:33 am, chanon <[EMAIL PROTECTED]> wrote: > I've found the workaround, just use the $file parameter: > $this->render(null, 'ajax', VIEW . /eleme

CakePHP with directory password protection?

2008-04-18 Thread Jon
I have CakePHP installed, and naturally it uses mod_rewrite to make the URLs clean. I made a modification to the htaccess file to allow me to ignore it for a certain directory. But then within that directory, I have an htaccess that defines password protection of that directory. Now I get a 404

Re: Custom SQL call problem (Solved! => My mistake)

2008-04-18 Thread Defranco
Solved! It was my mistake, not a bug: I had a user permission problem so it returned null for [Create Procedure] Thanks for your help Clark /defranco --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group

Re: $form->input() takes 'label' argument, what about $form->textarea()?

2008-04-18 Thread 703designs
OK, great. Also, how do I assign a value to $form->hidden? I'd like to update the "created" time of my tasks to NOW()... On Apr 18, 3:51 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > $form->input('field', array('type'=>'textarea')); > > On Apr 18, 3:47 pm, 703designs <[EMAIL PROTECTED]> wr

Re: $form->input() takes 'label' argument, what about $form->textarea()?

2008-04-18 Thread [EMAIL PROTECTED]
$form->input('field', array('type'=>'textarea')); On Apr 18, 3:47 pm, 703designs <[EMAIL PROTECTED]> wrote: > Oh, OK, that makes sense (I suspected that once I noticed that > textarea also didn't use an 'error' key). The API doesn't make this > clear: How do I draw a textarea using $form->input?

Re: $form->input() takes 'label' argument, what about $form->textarea()?

2008-04-18 Thread 703designs
Oh, OK, that makes sense (I suspected that once I noticed that textarea also didn't use an 'error' key). The API doesn't make this clear: How do I draw a textarea using $form->input? On Apr 18, 3:40 pm, nate <[EMAIL PROTECTED]> wrote: > It's not an inconsistency. FormHelper::input() is a *wrappe

Re: $form->input() takes 'label' argument, what about $form->textarea()?

2008-04-18 Thread nate
It's not an inconsistency. FormHelper::input() is a *wrapper method*. It generates an input field (which is automagically determined based on column type), a label, a wrapper div, and an error message, where applicable. FormHelper::textarea() just renders a textarea. In fact, if you call $form

$form->input() takes 'label' argument, what about $form->textarea()?

2008-04-18 Thread 703designs
I'm having trouble with one inconsistency I've found while building a small app. $form->input accepts a 'label' key in the options array, but $form->textarea doesn't. Why is this? Is there another key that will work like input's "label"? --~--~-~--~~~---~--~~ You re

Re: Create a MySQL database with cakephp

2008-04-18 Thread Juan Luis Baptiste
On Fri, Apr 18, 2008 at 1:32 AM, Atomic Guava <[EMAIL PROTECTED]> wrote: > > > Is there a way to do this in the model as it instantiates? > > I had a dig through the API, but couldn't find anything similar to the > beforeFilter() controller method - does anything exist like that for > models?

Re: Default template: Turn off CakePHP header and SQL debug? Also, $html->?

2008-04-18 Thread 703designs
Never mind again, things are up and running well. On Apr 18, 1:36 pm, 703designs <[EMAIL PROTECTED]> wrote: > Never mind the first two questions; I was able to turn off SQL output > by setting debug to 1, and I made my own copy of default.ctp as a new > template, choosing to remove the header and

Re: Default template: Turn off CakePHP header and SQL debug? Also, $html->?

2008-04-18 Thread 703designs
Never mind the first two questions; I was able to turn off SQL output by setting debug to 1, and I made my own copy of default.ctp as a new template, choosing to remove the header and footer regions. On Apr 18, 1:22 pm, 703designs <[EMAIL PROTECTED]> wrote: > First, I've begun building my own pag

Default template: Turn off CakePHP header and SQL debug? Also, $html->?

2008-04-18 Thread 703designs
First, I've begun building my own pages for a small To Do list app, which I'm making while following the old blog tutorial, in the Beta. How do I get rid of the CakePHP header bar? And how can I turn off the SQL query debug message at the bottom? Finally, I did figure this out before, but I've fo

Re: i18n in cakephp

2008-04-18 Thread b logica
2008/4/17 robert123 <[EMAIL PROTECTED]>: > > Hi, I want to develop website using cakephp in Chinese and English > using utf8 encoding I am trying to use cakephp 1.2 version, I have > been searching around the web on the docs on i18n, but it is rather > scatter, below are a few problems where

Re: sitepoint tutorial

2008-04-18 Thread Sliv
Possibly an issue with your mod_rewrite setup, check your .htaccess rules - also keep in mind that sitepoint article is around 2 years old iirc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To po

Re: Best way to use $html->link ?

2008-04-18 Thread Sliv
The first way is the recommended method, so that you can have more flexibility with routing if/when needed. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-

sitepoint tutorial

2008-04-18 Thread teerg
I am going through the sitepoint tutorial (http://www.sitepoint.com/ article/application-development-cakephp) getting the following problem: My root folder is http://htdocs/notes) To see the scaffolding page I have to go to http://localhost/notes/index.php/notes instead of http://localhost/notes/n

Best way to use $html->link ?

2008-04-18 Thread Neveldo
Hi all, I've an simple question :) Which is the best way to do a link using $html->link : 1) $html->link('Edit your profile', array('controller' => 'users', 'action' => 'profiles_edit') 2) $html->link('Edit your profile', '/users/edit') Is the second way depreciated for 1.2 ? Thank ! Cordia

i18n in cakephp

2008-04-18 Thread robert123
Hi, I want to develop website using cakephp in Chinese and English using utf8 encoding I am trying to use cakephp 1.2 version, I have been searching around the web on the docs on i18n, but it is rather scatter, below are a few problems where I have difficulties, hopefully anyone can help me, than

Findall on a belong b belong c.name='fred'

2008-04-18 Thread [EMAIL PROTECTED]
I have 3 models: A belongs to B B belongs to C I want to findAll A where C.name='fred'. I had assumed that cake would just left join the 3 tables and c.name would be accessible in the query. But regardless of what level of recursive I set, it only left joins A and B and then does multitudinous o

Re: folder problem

2008-04-18 Thread Chris Hartjes
On Fri, Apr 18, 2008 at 5:23 AM, teerg <[EMAIL PROTECTED]> wrote: > > I just started with the sitepoint tutorial. I've set up a test site > with rootdirectory http://localhost/notes for some reason when I want > to see the scaffolding of the notes table I have to go to the > following url: htt

model query indexes by a letter

2008-04-18 Thread hutchic
With the following function function calculate_due(){ $query = " SELECT i.id, i.client_id, ifnull(total,'0') as total_due, ifnull(i.due,'NA') as due_date, ifnull(sum(p.amount),0) as total_paid, ifnull(i.total - sum(p.amount),i.total) as total_still

Router, Controller change CakePHP 1.2

2008-04-18 Thread Jeebs24
Hello, First of all I already tried searching, but couldn't find that answer. Maybe I'm searching for the wrong thing. But here's the question: How do I change the position of the controller in the URL? For example I want to keep everything as is http://www.cakerules.ca/my_app/controller/acti

Re: Problem with autocomplete in IE

2008-04-18 Thread lekshmi
Thanks a lot.Now it is working. Cheers. :):) On Apr 17, 5:21 pm, grigri <[EMAIL PROTECTED]> wrote: > I don't know if it's relevant, but try adding this javascript to the > relevant page: > > try { > document.execCommand("BackgroundImageCache", false, true); > > } catch(err) {} > > [put it i

Re: cakePHP or not?

2008-04-18 Thread ReiToei
Aranworld: Those urls could be generated by any one of the hundreds of frameworks available in for php, java, python or lisp. The only real way to know what framework is running is to FTP or SSH in to the server running the application and look at files. I would agree with Dr. Tarique Sani; the r

Re: Which CakePHP version should I use?

2008-04-18 Thread Sourabh Sharma
Hello All, I am working on a cakephp from the last one year in stable version but i notice that in the latest version of cakephp ie. beta version more have more good functionality in that. So I prefer to use that beta version of cakephp. Thanks Sourabh Sharma On Apr 18, 8:04 pm, "Dardo Sordi Bo

Custom controller directories

2008-04-18 Thread el.pescado
Hi, I have a website written with CakePHP. Website is divided into dwo distinct sections - section for visitors, accessible from /, and administration panel, which should be located in url /admin (or something). I want controllers for visitors to be located physically in /app/controllers director

schema syntax documentation

2008-04-18 Thread gino pilotino
hello, is there any documentation for the new schema generation syntax ? i.e. to define foreign/primary keys and a list with all supported (sql) types. i didn't find much so, may somebody please post a link ? thank you, -d. --~--~-~--~~~---~--~~ You received this

Filtering hasMany tables

2008-04-18 Thread matw8
G'day all, I've written a telco billing system using CakePHP (which made life very easy! Hooray for Cake!) and I have run into an issue while writing some reports. I have customers A Customer hasMany ServiceNumbers A ServiceNumber hasMany CallRecords The problem is that I don't want ALL the Cal

folder problem

2008-04-18 Thread teerg
I just started with the sitepoint tutorial. I've set up a test site with rootdirectory http://localhost/notes for some reason when I want to see the scaffolding of the notes table I have to go to the following url: http://localhost/notes/index.php/notes instead of http://localhost/notes/notes. If

cakephp with other websites

2008-04-18 Thread Jon
I have cakephp installed in /public_html/ but I also have an application I want to run in /public_html/grades/ . I modified the htaccess file to look like this: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} grades RewriteRule ^.*$ - [L] RewriteEngine on Rew

Session : Single Sign on from other application

2008-04-18 Thread acl68
Hello everybody, I was programming an application with Cake and all was well ;-) Then my colleague and I had the idea to share the login procedure with the applications he is maintining, so that the login in his application and the information should be passed on to my cake application -> Single

Problem with widget in opera.

2008-04-18 Thread lekshmi
Hi, I am using cake php helper for creating widget. It is working in IE and MOZILLA. But not working in OPERA. The code used is $event = "New text"; $data = <

Re: international language / unicode issue

2008-04-18 Thread Burak USGURLU
What editor/IDE are you using? It seems like an editor problem? I had similar problems where UTF-8 text on ctp files was not correctly showing up on the browser which was caused by UTF-8 text on non UTF-8 encoded ctp files. When I changed the encoding of the file the problem was resolved. cra

doubts in cakephp help me plz

2008-04-18 Thread sudhakar s
hi guys, i am programmer in php, now i am learning cakephp and also am new to the framework. i already worked out some examples. here I have some doubts in cakephp, kindly see below and tell me where I am going wrong? --- 1.In Scaffolding delete option is not workin

Routing with named params

2008-04-18 Thread MonkeyGirl
Hi. Just a quick routing question. Again, I'm probably missing something simple but couldn't work it out from the documentation or previous posts... I've got this route set up: Router::connect('/', array( 'controller' => 'webpages', 'action' => 'view', 'home' )); This is great as long as

Re: Custom SQL call problem

2008-04-18 Thread Defranco
On 17 abr, 17:26, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > is it returning something that cake should be able to understand? try > debugging out the data in your *sql_dbo file before it gets put into > an array Its a nice idea, but what is sql_dbo file? I tried to Google it but it just po

Re: How to view all Cake queries?

2008-04-18 Thread Corie
Thanks a bunch. That's precisely what I needed. On Apr 18, 11:05 am, grigri <[EMAIL PROTECTED]> wrote: > Write the sql queries to a text log file. > > I created a custom datasource to allow syntax hilighting of the sql > log and file-based logging. > > More details in this > thread:http://groups

Maintain subdomain in login redirect

2008-04-18 Thread John R
When a user is at http://roar.domain.com and clicks on say, upload photo (that requires login) http://roar.domain.com/upload, it takes them to http://www.domain.com, just like a good little app. However, after a successful login, it takes them to http://www.domain.com/upload Any idea how I can t

Forms CakePHP v1.1 to CakePHP v1.2 Beta

2008-04-18 Thread Andrew Assarattanakul
Something that I ran across from updating CakePHP v1.1 to CakePHP v1.2 Beta for forms is that quite a few things changed and I wanted to continue to show all of the fields the database has as they are added without having to modify my views or controllers. For the View: - Form::generateFields wa

Forms CakePHP v1.1 to CakePHP v1.2 Beta

2008-04-18 Thread Andrew Assarattanakul
Something that I ran across from updating CakePHP v1.1 to CakePHP v1.2 Beta for forms is that quite a few things changed and I wanted to continue to show all of the fields the database has as they are added without having to modify my views or controllers. For the View: - Form::generateFields wa

Re: Which CakePHP version should I use?

2008-04-18 Thread Reza Muhammad
On Mar 5, 5:34 am, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > A short list of what I remember: > > * Pagintaion > * Integrated Auth (Auth component) > * Email Component > * Model Behaviors (Models) > * Improved plugins > * Better SQL generated in models (Models) > * "With" Associations (m

Re: need advice => try to develop alternative flex client

2008-04-18 Thread bingo
hi Kiang, Thank you for those pointers.. Can you describe little more about how you are using amfphp directly with CakePHP application. What I really want to know is how application (or controller) decides how to package data i.e. in html view or in AMF format Regards, On Apr 17, 9:10 pm, kian

testing in cakephp 1.2-Bug- Database table user_tests for model UserTest was not found

2008-04-18 Thread bhushan A
I have followed the steps mentioned 'http://bakery.cakephp.org/ articles/view/testing-models-with-cakephp-1-2-test-suite' LINK. I am putting my user.test.php's code here. Please let me know what i am missing. UserTest =& new UserTest (); $result = $this->UserTest ->inactive(array('id', 'name'))

Re: Question about Model::save() and its beforeSave and afterSave callbacks

2008-04-18 Thread Joshua McFarren
> Have you tried deleting all the files that have accumulated in my app/ > tmp/cache directory.  Sometimes when I have had these kinds of strange > problems it was because of an outdated cached model file. Hi Aran, I deleted the cache and unfortunately that didn't help. I'm pretty sure the wrong

Re: testing in cakephp 1.2-Bug-Class 'Usel' Not found

2008-04-18 Thread b logica
Actually, it'll give the same error if Cake can't *access* the table. Pretty much the swam thing, though, for all intents ... bhushan, make sure the table user_tests exists in the database and the user that Cake is connecting as has the proper rights to it (GRANT SELECT,INSERT,UPDATE,DELETE). On

Re: Question about Model::save() and its beforeSave and afterSave callbacks

2008-04-18 Thread aranworld
It is quite a mystery, because if you look at the Model's save() function, it clearly should be making a call to beforeSave(): http://api.cakephp.org/1.2/libs_2model_2model_8php-source.html#l01106 Have you tried deleting all the files that have accumulated in my app/ tmp/cache directory. Someti

Re: How to view all Cake queries?

2008-04-18 Thread grigri
Write the sql queries to a text log file. I created a custom datasource to allow syntax hilighting of the sql log and file-based logging. More details in this thread: http://groups.google.com/group/cake-php/browse_thread/thread/9609699bbd2e1afd Code here: http://openpaste.org/en/6181/ Hope th

Re: Which CakePHP version should I use?

2008-04-18 Thread Dardo Sordi Bogado
> where can i get the manual about this? http://book.cakephp.org > i also get confused with the form helper such as form->create(), how to > change the model n the destination where i'll post the form? $form->create('Post', array('url' => array('controller' => 'cake', 'action' => 'is_great')));

Re: Bug with findAllThreaded

2008-04-18 Thread Renan Gonçalves
Ok... I got it! I'll make a test case for this, thanks! on Fri, Apr 18, 2008 at 2:18 AM, Sourabh Sharma <[EMAIL PROTECTED]> > wrote: > > Hello, > > But I use that findAllThreaded its works fine for me. But we have to > only take care about parent id relationship. I followed the > instruction fr

Re: testing in cakephp 1.2-Bug-Class 'Usel' Not found

2008-04-18 Thread Chris Hartjes
On Fri, Apr 18, 2008 at 2:21 AM, bhushan A <[EMAIL PROTECTED]> wrote: > > hey thanks amit... it worked but not its giving following error. > Error: Database table user_tests for model SiteTest was not found. > what to do? please help The error message is telling you *exactly* what is wrong:

How to view all Cake queries?

2008-04-18 Thread Corie
Of course I have debug set to 2, but sometimes redirects are used. I'm specifically trying to troubleshoot an Auth problem and need to see the queries generated. What can I do? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: testing in cakephp 1.2-Bug-Class 'Usel' Not found

2008-04-18 Thread bhushan A
hey thanks amit... it worked but not its giving following error. Error: Database table user_tests for model SiteTest was not found. what to do? please help On Apr 18, 10:45 am, "Amit Badkas" <[EMAIL PROTECTED]> wrote: > On Fri, Apr 18, 2008 at 10:54 AM, bhushan A <[EMAIL PROTECTED]> > wrote: >

Re: Question about Model::save() and its beforeSave and afterSave callbacks

2008-04-18 Thread Fred Hirsch
What I would do to verify this behavior is to debug the model itself (Cake library). Just copy the original to a second file for safe keeping and start digging. I would step debug statements through the save() method and see if I could determine whether the beforeSave is called. Looking at the

How to test fake-as3 ?

2008-04-18 Thread kiang
The steps I did: 1. Check out source from http://fake-as3.googlecode.com/svn/branches/ 2. Add the following line to pretend/app/config/bootstrap.php App::import('Vendor', 'Amf.AmfDispatcher'); 3. Make the cakephp application 'pretend' works ( I'm sure it worked ) 4. Modify the settings in preten

Re: "redirect" and "Cannot modify header information"

2008-04-18 Thread [EMAIL PROTECTED]
Hi, Thank you for your help : I found the error. It was a presence of "space" was after the "?>" That sends a char and create an error On Apr 15, 7:08 pm, "Gonzalo Servat" <[EMAIL PROTECTED]> wrote: > On Tue, Apr 15, 2008 at 12:59 PM, [EMAIL PROTECTED] < > > > > [EMAIL PROTECTED]> wrote:

  1   2   >