Re: Clearing Cookies

2006-08-24 Thread RosSoft
try my cookie component in this file there's the component and the required class simple encryption http://www.ros-soft.net/otros/cakephp_blog/blog_tutorial.tgz --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake

FW : NEW 52 JOBS POSTED THIS WEEK ARE AS FOLLOWS:

2006-08-24 Thread HOT.Jobs_HOT.Resumes
Hi Dear Members,   FOLLOWING R THE NEW JOBS POSTED THIS WEEK (WEEKLY NEWS LETTER) :   Job Title Job Posted By Java Developer GD Consulting Wireless Application Developer in .Net GD Consulting call centre agents pecon

Re: Clearing Cookies

2006-08-24 Thread Simplerules
I do, but it is always cleared. I set it to last for ten years, but when I revisit the site after a session has expired - the cookies are cleared, its not a browser problem or setting since it happens to Opera and IE. --~--~-~--~~~---~--~~ You received this messa

Re: Clearing Cookies

2006-08-24 Thread RosSoft
the cookie of a session always is deleted. you must set a cookie by hand with setcookie --~--~-~--~~~---~--~~ 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.co

Clearing Cookies

2006-08-24 Thread Simplerules
When a Cake PHP session expires, does it clear all the cookies set? I have a login script which sets a remember me cookie and a few other details, it stores them in a Cake PHP session when viewing the site - but when I return to the site after the Cake PHP session has expired, all cookies are del

Re: A basic layout question

2006-08-24 Thread KN
Ok.. I have created a new layout - default.thtml http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> charset('UTF-8');?> My Site title css('mysite','stylesheet',array('media'=>'screen'));?> link('prototype.js'); ?> link('scriptaculous.js?load=builder,eff

Re: Shared Hosting Environment - Please help!!!

2006-08-24 Thread Chris Hartjes
Yeah, not having access to the httpd.conf file can make it tough to make things work. I suggest you give one last stab at it by asking your host if they can help you out. You never know... On 8/24/06, zonathen <[EMAIL PROTECTED]> wrote: > > Thanks a lot Chris but I am giving up and dropping cak

Re: Shared Hosting Environment - Please help!!!

2006-08-24 Thread zonathen
Thanks a lot Chris but I am giving up and dropping cake for this project. I simply can't waste anymore time with the server. Bad idea to rush this project with new technology, foreign server to begin with... Bummer because I really like Cake and I will just have to put it off until I can test i

Re: save data from ONE form to TWO models

2006-08-24 Thread [EMAIL PROTECTED]
i tried these codes: $this->Answer->User->save($this->params['data']); $userID = $this->Answers->User->lastInsertId(); but it said Fatal error: Call to a member function on a non-object in /home/felix/cake/sdq/controllers/answers_controller.php on

Re: Shared Hosting Environment - Please help!!!

2006-08-24 Thread Chris Hartjes
No, the AllowOverride needs to go in the Apache httpd.conf file. On 8/24/06, zonathen <[EMAIL PROTECTED]> wrote: > > Well, I tried putting that in the htacess but the server didn't allow > it. Must be a security measure because of the allowoverride... > > > > > -- Chris Hartjes "The greatest

Re: Shared Hosting Environment - Please help!!!

2006-08-24 Thread zonathen
Well, I tried putting that in the htacess but the server didn't allow it. Must be a security measure because of the allowoverride... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this

Re: Script to make old projects ready for cake

2006-08-24 Thread Samuel DeVore
No I have not, but I will gladly use yours. You know to help you test it ;) On 8/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Does anyone have some sort of script or utiltiy that you could use to > make an old project ready for cake? > > could be php, or a series of mysql queries on i

Script to make old projects ready for cake

2006-08-24 Thread [EMAIL PROTECTED]
Does anyone have some sort of script or utiltiy that you could use to make an old project ready for cake? could be php, or a series of mysql queries on itself... i think about for example: go through each table in a certain database and change every unix timestamp in mysql datetime, or go throug

Re: getting started.

2006-08-24 Thread [EMAIL PROTECTED]
Problem solved :) I had to put $this->Recipe->recursive = 2; in the recipes controller (under view)! When I tested that yeasterday I had put it in under index in the controller! That is why it did'nt work. back on track :) I guess that nothing good comes easy.. Best regards. Asbjørn Mo

Re: Re: $this->flash() Problem

2006-08-24 Thread Jason Lee
On 8/24/06, Samuel DeVore <[EMAIL PROTECTED]> wrote: > > Can you post the code in your controller? Here's the relevant snippet: http://cakephp.org/pastes/show/2ec3cd97a310e0ff524105a02a3339f2 -- jason lee http://www.steeplesoft.com http://blogs.steeplesoft.com http://littlezoper.livejournal.co

Re: Pages

2006-08-24 Thread gRegor
Simplerules: Check in /app/config/routes.php and make sure you have this route (it should be in there by default): $Route->connect('/pages/*', array('controller' => 'pages', 'action' => 'display')); --~--~-~--~~~---~--~~ You received this message because you are

Re: RdBaker Works with Latest Cake Release?

2006-08-24 Thread jonathan
Unfortunately, I don't have a local setup - all my stuff is currently on a shared hosting plan with no command line access. I suppose I should get off my lazy butt and set something up locally, but I'm not sure when that's gonna happen. I will take your advice and look through the source code, h

Re: Pages

2006-08-24 Thread Mikee Freedom
Sorry dood, I haven't played with this enough to tell you anything more useful. I'm sure it has come up in the Google Groups before though if you did a quick search. On 25/08/06, Simplerules <[EMAIL PROTECTED]> wrote: > > I created page1.thtml in the views/pages but got this errror when I try > t

$this->flash() Problem

2006-08-24 Thread Jason Lee
Using CakePHP 1.1.7, when I say $this->flash("foo", "/foo"); it doesn't flash. It rerenders the page i'm on. Has anyone else had that problem? -- jason lee http://www.steeplesoft.com http://blogs.steeplesoft.com http://littlezoper.livejournal.com --~--~-~--~~~---~--

Re: Not following the conventions

2006-08-24 Thread eDevil
Hey guys, I figured it out. The problem was in the view. The thing is that $this->Post->findAll() returns all the values in the table in an array so it must be broken down by using "foreach". Here's the view that solved the problem: Thanks a lot for your help. I really app

Re: Not following the conventions

2006-08-24 Thread eDevil
Thanks for your comments. @Pablo Viojo: Oops, cant believe I forgot to type "extends AppModel" after the model name. Thanks! @John David Anderson: Look at the code of publisher_controller.php on the very first post. I DO have that line in that controller. @AD7six: Now i'm getting a new error:

Re: Broken view path problem with IIS

2006-08-24 Thread gRegor
[EMAIL PROTECTED] wrote: > I've seen the same issue with the slashes missing, I think that > stripslashes() is being run over that text before it gets output to the > screen. But I'm not sure if it's affecting the internals, and I'm not > running on IIS (although I am running on Windows). I'm exp

Re: Map non-cake PHP files to a default controller like PagesController

2006-08-24 Thread lloydhome
There is no old() method. See the pages controller to see how the display() method gets called for everything and parses the path info itself. As far as placing it in the webroot/content: you might get that to work ... dunno and don't really wanna try ... maybe by playing with $viewPath or filen

Re: Error in the Cake Blog tutorial.

2006-08-24 Thread Samuel DeVore
very often this is an indication that your app/config files are not in sync with your cake core files see this thread http://groups.google.com/group/cake-php/browse_thread/thread/6465f8d6ec5b7462/e31177cc5332340a?lnk=gst&q=Warning%3A+Invalid+argument+supplied+for+foreach()&rnum=4#e31177cc5332340a

Re: Re: $this->flash() Problem

2006-08-24 Thread Samuel DeVore
Can you post the code in your controller? use the cakebin http://cakephp.org/pastes/add (click the save button if you want it to last very long) Sam D On 8/24/06, Jason Lee <[EMAIL PROTECTED]> wrote: > > On 8/24/06, Mikee Freedom <[EMAIL PROTECTED]> wrote: > > if you're using anything above de

Re: $this->flash() Problem

2006-08-24 Thread Jason Lee
On 8/24/06, Mikee Freedom <[EMAIL PROTECTED]> wrote: > if you're using anything above debug = 1 in the core config then the > flash doesn't automatically redirect. caught me out for a while as > well. Right, but it's not even displaying the message. Say, for example, I'm on /users/add. I fill o

Re: $this->flash() Problem

2006-08-24 Thread Mikee Freedom
if you're using anything above debug = 1 in the core config then the flash doesn't automatically redirect. caught me out for a while as well. turn it to 0 and you'll see it redirect. On 25/08/06, Jason Lee <[EMAIL PROTECTED]> wrote: > > Using CakePHP 1.1.7, when I say $this->flash("foo", "/foo")

Error in the Cake Blog tutorial.

2006-08-24 Thread mrbog
I just installed the latest cakephp release and tried doing the cake blog tutorial. This one: http://manual.cakephp.org/chapter/20 Here is the error I got: Warning: Invalid argument supplied for foreach() in /www/cakefun/cake/libs/controller/controller.php on line 604 Warning: Invalid argumen

Re: Pages

2006-08-24 Thread Simplerules
I created page1.thtml in the views/pages but got this errror when I try to view pages/page1 Missing Method in PagesController You are seeing this error because the action page1 is not defined in controller PagesController Notice: this error is being rendered by the app/views/errors/missing_acti

Re: Not following the conventions

2006-08-24 Thread AD7six
In a word "Routes" something like: connect('/publisher/:action', array('controller' => 'publishers', 'action' => 'index')); The error message, if you read it, tells you that it found the object Post, but your object doesn't have the method findAll. To solve that problem read Pablo Viojo's messag

Re: Date Format in Query

2006-08-24 Thread c_doug
Actually that is a pretty funny quote. I am thinking of putting a sign in our room that says "Save yourself some ridicule" for everyone who comes in with questions or requests. I'ts kind of like the angry IT guy on SNL. --~--~-~--~~~---~--~~ You received this mes

Re: Pages

2006-08-24 Thread Mikee Freedom
Cake comes with an inbuilt Pages Controller: PagesController. Allows you to define static pages within that pages directory and serve them up similar to the way you do actions. http://groups.google.com/group/cake-php/search?group=cake-php&q=pagescontroller&qt_g=1&searchnow=Search+this+group http

Re: Pop Up Window

2006-08-24 Thread Mathieu Gagnon
Norberto wrote: > Hi group my name is Norberto, i'm from Brazil and i'm newer here.I > have doubt in javascript.I need to pass the value in a pop up menu to > the parent window.I use the function window.opener but anything that i > am waiting happen.I use this code. > > > window.opener.document

Re: Model methods in AppControlles

2006-08-24 Thread Mikee Freedom
query() is a method of your Model, and not your Controller. So, you've successfully set up that method and it seems to be working. Just an incorrect call to query. Try something like: function getConfig($name) { $ret = $this->{$this->modelClass}->query("SELECT value FROM config WHER

Pages

2006-08-24 Thread Simplerules
What purpose does the pages folder in views serve? --~--~-~--~~~---~--~~ 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, sen

Pop Up Window

2006-08-24 Thread Norberto
Hi group my name is Norberto, i'm from Brazil and i'm newer here.I have doubt in javascript.I need to pass the value in a pop up menu to the parent window.I use the function window.opener but anything that i am waiting happen.I use this code. window.opener.document.getElementById(projectForm)

Re: Not following the conventions

2006-08-24 Thread John David Anderson (_psychic_)
On Aug 24, 2006, at 1:08 PM, eDevil wrote: > >> You might try using routes to play with URLs rather than class names. > That's a good idea. Any idea how I might do that? http://manual.cakephp.org/chapter/configuration Section 3: Routes Configuration I'd start there. >> What does your Publish

Re: Not following the conventions

2006-08-24 Thread eDevil
> You might try using routes to play with URLs rather than class names. That's a good idea. Any idea how I might do that? > What does your PublisherController look like? What's on line 29? This is my line 29: $this->set('data',$this->Post->findAll()); --~--~-~--~~~-

Re: Map non-cake PHP files to a default controller like PagesController

2006-08-24 Thread [EMAIL PROTECTED]
Good Idea. What does the old() function in your SpagesController look like? I'd like to have my legacy files in /webroot/content though. So I was thinking that I would just have the controller pass the path to the requested php file as a variable to the view, and then the view would just consist

Re: Not following the conventions

2006-08-24 Thread Pablo Viojo
eDevil,I think your Post class should extends AppModel or some other Model Class. Regards,-- Pablo Viojo[EMAIL PROTECTED] http://pviojo.net On 8/24/06, John David Anderson (_psychic_) <[EMAIL PROTECTED]> wrote: On Aug 24, 2006, at 12:44 PM, eDevil wrote:>> Hi, I'm trying something different here by

Re: Not following the conventions

2006-08-24 Thread Mathieu Gagnon
maybe you could keep the conventions while defining a custom route url. eDevil wrote: > Hi, I'm trying something different here by not following the > conventions because of my very complex requirements. > > Here's how I want it to work: > > app/controllers/publisher_controller.php >

Re: Not following the conventions

2006-08-24 Thread John David Anderson (_psychic_)
On Aug 24, 2006, at 12:44 PM, eDevil wrote: > > Hi, I'm trying something different here by not following the > conventions because of my very complex requirements. > > Here's how I want it to work: > > app/controllers/publisher_controller.php > ---

Re: Not following the conventions

2006-08-24 Thread Olivier Percebois-Garve
If your only concern is the links, you may attack your problem with the routes. olivvv eDevil wrote: > Hi, I'm trying something different here by not following the > conventions because of my very complex requirements. > > Here's how I want it to work: > > app/controllers/publisher_controller.ph

Re: State List

2006-08-24 Thread Vanchuck
The ISO is your friend! http://www.iso.org/iso/en/prods-services/iso3166ma/04background-on-iso-3166/index.html ISO3166-1: Country Codes ISO3166-2: Province/State ("Subdivision") Codes ISO3166-3: Named Places (ie, cities) The ISO website offers them for sale, but I do remember finding one place (

Not following the conventions

2006-08-24 Thread eDevil
Hi, I'm trying something different here by not following the conventions because of my very complex requirements. Here's how I want it to work: app/controllers/publisher_controller.php --- class PublisherController extends AppCo

Re: Re: Checkbox Problem

2006-08-24 Thread Samuel DeVore
you should file a bug in htts://trac.cakephp.org against that (if there isn't one already) so John can fix it ;) On 8/24/06, Simplerules <[EMAIL PROTECTED]> wrote: > > I guess the CakePHP manual is out of date: > "checkbox > string $fieldName > array $htmlAttributes > boolean $return = false" > >

Re: Checkbox Problem

2006-08-24 Thread John David Anderson (_psychic_)
On Aug 24, 2006, at 12:24 PM, Simplerules wrote: > > I guess the CakePHP manual is out of date: > "checkbox > string $fieldName > array $htmlAttributes > boolean $return = false" Make sure to log a ticket to make sure it gets fixed. -- John --~--~-~--~~~---~--~

Trouble with AjaxHelper $options['loaded']

2006-08-24 Thread josh southern
I'm having trouble with the 'loaded' callback function and AJAX links. It seems that the callback is executed a little too early. I have a JavaScript function that basically resizes the height of the columns in my layout when the page is loaded, based on the longest column, and then displays the

Re: Checkbox Problem

2006-08-24 Thread Simplerules
I guess the CakePHP manual is out of date: "checkbox string $fieldName array $htmlAttributes boolean $return = false" --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send ema

Re: Checkbox Problem

2006-08-24 Thread John David Anderson (_psychic_)
On Aug 24, 2006, at 12:13 PM, Simplerules wrote: > > I have this in a view file: >checkbox('User/Coppa', array('onclick' => > "watch('data[User][Coppa]', 'regform', 'birthdate', 'Coppa')")); ?> > > but the html attributes are not added. That's because they are the third parameter rather

Checkbox Problem

2006-08-24 Thread Simplerules
I have this in a view file: checkbox('User/Coppa', array('onclick' => "watch('data[User][Coppa]', 'regform', 'birthdate', 'Coppa')")); ?> but the html attributes are not added. The form comes out like this: --~--~-~--~~~---~--~~ You received this messag

Re: Production setup on a machine with multiple domains

2006-08-24 Thread Kabuto
This will not work, because dynamic virtual hosts cannot be configured on host base. One just adds a directory to /var/www/, and the host is reachable from the net. The other server cannot set webroots for subdomains, just for a complete domain, which is also not possible in this case. There has

Ajax calls just aren't working

2006-08-24 Thread codecowboy
I have been trying to make a remoteCall using the AjaxHelper::remoteFunction(...). All that the following code does is print the javascript to the browser : new Ajax.Updater('menu','/organizations_list/getSchoolOrganizations', {asynchronous:true, evalScripts:true, requestHeaders:['X-Update', 'me

Re: Problem with Methods in AppController!!!

2006-08-24 Thread cyberlogi
Your controller has an object for each model that you tell it to use with $uses = array('Config', etc); then you need to reference this model to query the database $this->Config->query('statement'); although as John states, your query is simple. I would use the built in field function $this->

Re: Production setup on a machine with multiple domains

2006-08-24 Thread Kabuto
This will not work, because dynamic virtual hosts cannot be configured on host base. One just adds a directory to /var/www/, and the host is reachable from the net. The other server cannot set webroots for subdomains, just for a complete domain, which is also not possible in this case. There has

Re: getting started.

2006-08-24 Thread irfan baig
> Well I am much interested in how you would change my database! If I > have understood you correctly this is what should be done: This is kinda out of the scope of Cake discussion, but a crude entity diagram would be: raw_materials >-< ingredients (Many raw materials to many ingredients) ingred

Re: Production setup on a machine with multiple domains

2006-08-24 Thread [EMAIL PROTECTED]
when you use virtualhosts you can keep the default directory structure intact i would say? for example: /cake contains app1 , app2 (each have their own webroot directory) and cake (the libraries) then setup your virtualdomains up (pseudo-code): virtual domain : path cake/app1/webroot domain1 vi

High Cohesion Cakes

2006-08-24 Thread Sonic Baker
I seem to be having trouble making high cohesion objects with cake. It seems the standard way to attack problem with cake id to start with the Model. When this Model is a mapping of a relational database we end up with a lot of ModelA->ModelB->ModelC etc... To me this suggests high coupling between

Re: Re: Re: Date Format in Query

2006-08-24 Thread Samuel DeVore
And Cranky perhaps I need to add that to my nom de plum ;) On 8/24/06, Larry E. Masters aka PhpNut <[EMAIL PROTECTED]> wrote: > Agreed you are the "Old Fart" > > > -- > /** > * @author Larry E. Masters > * @var string $userName > * @param string $realName > * @returns string aka PhpNut > * @ac

Re: Re: Date Format in Query

2006-08-24 Thread Larry E. Masters aka PhpNut
Agreed you are the "Old Fart"-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @access  public*/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" g

Re: getting started.

2006-08-24 Thread [EMAIL PROTECTED]
Well I am much interested in how you would change my database! If I have understood you correctly this is what should be done: recipes (no changes) Add a new table that joins ingredients with raw materials. recipes_ingredients (recipe_id, ingredient_id, raw_material_id) ingredients (number resu

Production setup on a machine with multiple domains

2006-08-24 Thread Kabuto
Hi, I'm trying to get cakephp to run on a machine that serves a lot of domains. This means I cannot change the webroot to my liking. This also means that have to break up cake's directory structure and chance a few constants in index.php which is located in webroot. My setup looks like this (eve

Re: getting started.

2006-08-24 Thread [EMAIL PROTECTED]
Well I am much interested in how you would change my database! If I have understood you correctly this is what should be done: recipes (no changes) Add a new table that joins ingredients with raw materials. recipes_ingredients (recipe_id, ingredient_id, raw_material_id) ingredients (number resu

Re: Re: save data from ONE form to TWO models

2006-08-24 Thread Samuel DeVore
Also if the models are related you can do if ($this->Answers->User->save(array('User'=>$userData) { $user_id =$this->Answers->User->lastInsertId(); $this->params['data']['otherModelData']['userr_id'] = $user_id; // now do your save of other stuff not tested or what ever but give

Re: Re: Date Format in Query

2006-08-24 Thread Samuel DeVore
sorry c_doug, I was trying to be a little lite and facetious and it failed, I was really trying to point out that your issue was one of mysql vocabulary and db 'stuff' and not really related to Cake per say, not that this is not a place to ask those kinds of questions but also to perhaps guide you

Re: save data from ONE form to TWO models

2006-08-24 Thread Pablo Viojo
Check the object that "/users/saveUser" is returning, I think it's not only an id but a more complex structure.Regards,-- Pablo Viojo[EMAIL PROTECTED] http://pviojo.net On 8/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: hi, here is my problem: i need to get user_id before saving the answersof

Re: Date Format in Query

2006-08-24 Thread c_doug
I am sure everyone here knows this but here is a good link on the topic: "I've seen too many applications performing date calculations at the code level when the same can be done using built-in MySQL functions." http://www.databasejournal.com/features/mysql/article.php/2172731 --~--~-~

Re: Date Format in Query

2006-08-24 Thread c_doug
Ridicule? Sorry, I have found it difficult to find info on things that are simple to accomplish in other languages. I am sure that is understandable. As far as I know there is not even a book on CakePHP at this time. I primarily work in Usability/UI Design. As far as server-side I have experience

Re: getting started.

2006-08-24 Thread irfan baig
I didn't mean your modelling was *wrong* per se - just, if this was a real-life app, you would probably want it to be a little different. Like Mikee said, it's hard to help you out without you telling us specifically what you don't understand. Going back to your first email, if you're unsure how

Re: Problem with Methods in AppController!!!

2006-08-24 Thread John David Anderson (_psychic_)
On Aug 24, 2006, at 8:24 AM, kacperix wrote: > > Hi! !!! > > In my app_controller.php file a have this function: > > function getConfig($name) { > $ret = $this->query("SELECT value FROM config WHERE > name='".$name."'"); > $wynik = $ret[0]['value']; > return $wynik; >

save data from ONE form to TWO models

2006-08-24 Thread [EMAIL PROTECTED]
hi, here is my problem: i need to get user_id before saving the answers of this user, but after i call $userID = $this->requestAction("/users/saveUser"), i found that the next saving action just doesn't work, what shall i do please? my models and controllers: http://cakephp.org/pastes/show/8be29

Model methods in AppControlles

2006-08-24 Thread kacperix
Hello. I have in my app_controller.php file that function: function getConfig($name) { $ret = $this->query("SELECT value FROM config WHERE name='".$name."'"); $wynik = $ret[0]['value']; return $wynik; } And when I want to access to this function I' got on scre

Problem with Methods in AppController!!!

2006-08-24 Thread kacperix
Hi! In my app_controller.php file a have this function: function getConfig($name) { $ret = $this->query("SELECT value FROM config WHERE name='".$name."'"); $wynik = $ret[0]['value']; return $wynik; } And when in sth controller i do for example $this->getConfig(

Re: Seperate controllers by function in sub-directories

2006-08-24 Thread Peter
Thanks for the info - I will take a look. I am also reading about plugins as a possible solution - creating a seperate plugin for each "module". --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To

Re: sorting recursive find()'s and findall()'s

2006-08-24 Thread Samuel DeVore
you can use http://cakephp.org/search?q=bindModel bindModel to set associated ordering on demand (hint look for cakebaker's link) On 8/24/06, jez <[EMAIL PROTECTED]> wrote: > > Hi there, > I was wondering if there's a way to sort on a foreign field when I use > recursion in my find()'s > > Thank

Re: Re: State List

2006-08-24 Thread Samuel DeVore
It would be better to make a page somewhere and link to it and save the list the traffic. If people have snippets or small help instructions that they need a place to host them and are CakePHP related and are not cakeforge snippet quality and not worthy of the vapor bakery. I might be willing to

sorting recursive find()'s and findall()'s

2006-08-24 Thread jez
Hi there, I was wondering if there's a way to sort on a foreign field when I use recursion in my find()'s Thanks, Jez. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send e

Re: State List

2006-08-24 Thread Brian French
Sorry about that. I did it so anyone googling (sry google) for the actual sql for states and countries, they would come across it. Chris Hartjes wrote: > That's a cool resource...but next time I wouldn't blast the list with > all that SQL. ;) > > --~--~-~--~~~---~

Re: New at Cake PHP?

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

Re: Shared Hosting Environment - Please help!!!

2006-08-24 Thread Chris Hartjes
Make sure your Apache configuration is setup to allow the use of .htaccess. Specifically, you need to have the following: Options +Indexes +FollowSymLinks AllowOverride All I always forget to do that when starting a new CakePHP project. ;) On 8/24/06, zonathen <[EMAIL PROTECTED]> wrote: > > Pl

Re: State List

2006-08-24 Thread Chris Hartjes
That's a cool resource...but next time I wouldn't blast the list with all that SQL. ;) -- Chris Hartjes "The greatest inefficiencies come from solving problems you will never have." -- Rasmus Lerdorf @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.ne

Re: Shared Hosting Environment - Please help!!!

2006-08-24 Thread zonathen
Please??? Mod rewrite on. Cake is great and I would love to see it work in production. --~--~-~--~~~---~--~~ 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.c

Re: Seperate controllers by function in sub-directories

2006-08-24 Thread John David Anderson (_psychic_)
On Aug 24, 2006, at 8:26 AM, Peter wrote: > > I apologize if this question has been asked. I searched the topics > and > did not see anything related to my question. > > What I would like to do is group by controllers in subdirectories > based > on logic functions. For example the applicati

Re: how to use Cookie in Cake PHP ?

2006-08-24 Thread John David Anderson (_psychic_)
On Aug 24, 2006, at 3:04 AM, JitZhang wrote: > > how to use Cookie in Cake PHP ? Same as you normally would in any PHP application, though most of your work would be done in a controller. Check out the PHP manual for more information. http://us2.php.net/manual/en/function.setcookie.php --

Seperate controllers by function in sub-directories

2006-08-24 Thread Peter
I apologize if this question has been asked. I searched the topics and did not see anything related to my question. What I would like to do is group by controllers in subdirectories based on logic functions. For example the application I am building is comprised of a set of admin tasks, user ta

Re: New at Cake PHP?

2006-08-24 Thread John David Anderson (_psychic_)
On Aug 23, 2006, at 11:51 PM, jatrojoomla wrote: > > Hi friends, > Any body could tell me what Cake PHP actually dose? What can I do > using > this ? I saw so many people using Cake PHP, but what is it real > purpose. CakePHP is a web application framework. It allows you to build web applic

Re: State List

2006-08-24 Thread Brian French
Here are the list of Countries (thanks to zen cart) -- -- Table structure for table `countries` -- CREATE TABLE `countries` ( `countries_id` int(11) NOT NULL auto_increment, `countries_name` varchar(64) NOT NULL default '', `countries_iso_code_2` char(2) NOT NULL default '', `countries

Re: State List

2006-08-24 Thread Brian French
Here is the list of US states which also include Canadian territories: -- -- Table structure for table `state` -- CREATE TABLE `state` ( `id` char(2) NOT NULL default '', `name` varchar(30) NOT NULL default '', UNIQUE KEY `id` (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='list o

State List

2006-08-24 Thread Simplerules
This isn't specifically a Cake PHP problem, but does anybody know where I could find a list (preferably in SQL or PHP Array format) of all the states/countys in the world, for each country? I am creating a registration form and need have done the Country List, now I need the State list. --~--~

Re: Loading Time

2006-08-24 Thread Pablo Viojo
You can set DEBUG to 0 (config.php) or go to app/webroot/index.php and remove the following (at the end)if (DEBUG){    echo ""; }Regards, PabloOn 8/24/06, Simplerules <[EMAIL PROTECTED]> wrote: When using the layout AJAX to output data, a HTML comment with loadingtime is added and it is screwing up

Loading Time

2006-08-24 Thread Simplerules
When using the layout AJAX to output data, a HTML comment with loading time is added and it is screwing up my scripts. How can I remove it? I checked the AJAX layout file and can't see it. --~--~-~--~~~---~--~~ You received this message because you are subscribe

Re: A basic layout question

2006-08-24 Thread Pablo Viojo
You're right. You should an default.thtml used to load all the pages in a non-AJAX way (this pages contains all the scripts) and ajax.thtml for the AJAX communication.Usually the AJAX transfers are simply data so it's improbably that you need some other scripts to work with it. Regards,-- Pablo Vio

Re: Giving a Form a Name

2006-08-24 Thread Samuel DeVore
yes that is what the htmloptions parameter is for (use an array) http://api.cakephp.org/class_html_helper.html#8978c3bdf729602b37160d0a22b8b6ac On 8/24/06, Simplerules <[EMAIL PROTECTED]> wrote: > > Is it possible to assign a name tag to a form generated using the > helper? > > > > > --~--~---

Re: Date Format in Query

2006-08-24 Thread Samuel DeVore
you should look at the documentation for the database you are using. in mysql one might do "distinct month(Post.created) " but reading some documentation would really save yourself some ridicule in the long run. If you rely on this list as your crutch people are going to start getting crank

Giving a Form a Name

2006-08-24 Thread Simplerules
Is it possible to assign a name tag to a form generated using the helper? --~--~-~--~~~---~--~~ 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 unsubscri

how to use Cookie in Cake PHP ?

2006-08-24 Thread JitZhang
how to use Cookie in Cake PHP ? thank you help ! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send

New at Cake PHP?

2006-08-24 Thread jatrojoomla
Hi friends, Any body could tell me what Cake PHP actually dose? What can I do using this ? I saw so many people using Cake PHP, but what is it real purpose. thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cak

Re: creating and viewing an image database

2006-08-24 Thread francky06l
I have used the fileinfo (finfo_open / finfo_file) php functions to check the mime type of the uploaded file. I check for the MIME type detected into a list of valid mime I can store in DB. --~--~-~--~~~---~--~~ You received this message because you are subscribed

AJAX - Filling a dropdown

2006-08-24 Thread Simplerules
Is there a way to fill a dropdown using AJAX? (I have prototype and script.alico.us). --~--~-~--~~~---~--~~ 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

Re: A basic layout question

2006-08-24 Thread KN
Thanks for the replies. Pablo , Do you mean to say that my ajax.thtml should contain only ? Then where I will include all javascript files ? Should I need to create default.thtml (layout) ? And while clicking on any link , I will load through ajax . ie render('newpage' , 'ajax') .. Am I corr

  1   2   >