Re: Including information while not inside the cake file structure

2006-07-10 Thread [EMAIL PROTECTED]
If you mean getting the views as rendered by the controllers, or accessing the models from outside, it's a toughie. Some of us have had luck including models and some of the cake core files manually, but it's a dirty stinking hack at best. The only clean methods are to download the view as a rend

Re: Anyone a runner here? (and a beta tester...)

2006-07-10 Thread tom
Hmm... perhaps something with the timezone (runs made in the future are automatically called "Plans." I'll probably change this behavior) I'll try to get that sorted out tommorrow. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Anyone a runner here? (and a beta tester...)

2006-07-10 Thread Gustavo Carreno
Hummm, the logout message is also no very friendly... it's the same one I've talked about: "Sorry, but you aren't welcome to the WeRun.org development site just yet." Gustavo Carreno --- < If you know Red Hat you know Red Hat, If you know Slackware you know Linux > --~--~-~--~~-

Re: Anyone a runner here? (and a beta tester...)

2006-07-10 Thread Gustavo Carreno
On 7/10/06, tom <[EMAIL PROTECTED]> wrote: > > This now has a friendly confirmation message & a link to log in. That's good !! More reporting: 1- You haven't removed a debug($var) on the flash message after commiting a new run. 2- Committing a new run on this day, with the form on the left, give

file_get_contents()

2006-07-10 Thread John Zimmerman [gmail]
I am having a bit of a problem with using an external library with Cake.I have a page that uses a 3rd party class to generate a map.  I am porting this page from plain old PHP scripting into my cake environment. The class works correctly when just being run in a standard PHP file.  But as soon as I

Re: How do Models work in Cake

2006-07-10 Thread John David Anderson (_psychic_)
On Jul 10, 2006, at 4:44 PM, [EMAIL PROTECTED] wrote: > > I doing research for a new framework for my project, I came across the > concept of the Hierarchical Model View Controler pattern. I've only > found one php framework that claims to support this (Claw). It > makes a > whole lot of sen

How do Models work in Cake

2006-07-10 Thread [EMAIL PROTECTED]
I doing research for a new framework for my project, I came across the concept of the Hierarchical Model View Controler pattern. I've only found one php framework that claims to support this (Claw). It makes a whole lot of sense to me and I was wondering if Cake supported this (or could it be ex

Re: hasAndBelongsToMany issue

2006-07-10 Thread Larry E. Masters aka PhpNut
Open a ticket on the trac site-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @access  public*/ On 7/10/06, kiniu <[EMAIL PROTECTED]> wrote: Hi all,Today I've found that in my application when I try to edit one of mymodels after save res

hasAndBelongsToMany issue

2006-07-10 Thread kiniu
Hi all, Today I've found that in my application when I try to edit one of my models after save result is not that I expect. My model has 4 hasAndBelongsToMany associations. When my model belongs to all of them and while editing it I remove one of the associations to other model there is a big me

RE: requestAction/renderElement

2006-07-10 Thread Kit Marik
I have tried that, as well as $this->set('data', $this->Post->findAll()); And return $this->Request->findAll(); As well as several other things along this lines and none have solved it yet. Any other ideas? --~--~-~--~~~---~--~~ You received thi

Re: requestAction/renderElement

2006-07-10 Thread francky06l
I guess it comes from your findAll syntax in the recentposts() method : $this->set('data', $this->Post->findAll(null, null, 'created DESC')); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. T

Re: Including information while not inside the cake file structure

2006-07-10 Thread nate
include ("/path/to/app/views/controller/view.thtml") is one way that comes to mind. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To

Re: Anyone a runner here? (and a beta tester...)

2006-07-10 Thread tom
This now has a friendly confirmation message & a link to log in. --~--~-~--~~~---~--~~ 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 t

Including information while not inside the cake file structure

2006-07-10 Thread Luke
How could I include a certain view from a cake application into a page that does not fall under the cake file structure? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send

requestAction/renderElement

2006-07-10 Thread Kit
I get the following error: Warning: Invalid argument supplied for foreach() in T:\ns\cake_1.1.5.3148\app\views\elements\recentposts.thtml on line 3 /views/pages/home.thtml ... renderElement('recentposts') ?> ... /views/elemets/recentposts.thtml requestAction('posts/recentposts');

hasMany/finderQuery/fields not working?

2006-07-10 Thread Jason Botwick
I'm having some trouble with hasMany relationships. I pretty much baked this whole application so far, I'm using a release I downloaded yesterday. When I view a User in this model, it gives me a list of all the associated rows in the paths_privileges_users table, which is great . . . but I don't wa

Solution to CakePHP mod_rewrite problem on 1and1

2006-07-10 Thread ahmed.kamel
I all, i was asked about how i got cakephp to work on 1and1. I can not take credit for the solution, becaue it took me hours to find it online (and i no longer have the link); but as posted on my site http://ahmedkamel.net/2006/07/03/rails-vs-cake-which-one-should-i-chose/ here goes. ---

Re: Controller without association with a model

2006-07-10 Thread eDevil
Thanks for the help guys. Both of them work. var $uses = array(); works too, btw. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To

Re: Separating Models into folders

2006-07-10 Thread meek
You can put something like this $modelPaths = array(MODELS."myFolder".DS, MODELS."myOtherFolder".DS); in /app/bootstrap.php to allow you to load models from folders other than the default one. so in your case: $modelPaths = array(MODELS."util".DS); and then your controller should load the mode

Re: Controller without association with a model

2006-07-10 Thread Ryan Petrain
I believe that you define a variable $uses in the controller and set it equal to nothing:var $uses = "";I am not sure but I think that I read that in another post. On 7/10/06, eDevil <[EMAIL PROTECTED]> wrote: I want to create an Installer for the application I built.The first page collects informa

Re: Controller without association with a model

2006-07-10 Thread John Zimmerman [gmail]
Define a class variable called uses at the top of your setup controller class called 'uses' and set it to 'null'i.e.class SetupController extends AppController{    var $name = 'Setup';    var $uses = null;     //actions below here}After that it will not look for a model.On 7/10/06, eDevil <[EMAIL P

Controller without association with a model

2006-07-10 Thread eDevil
I want to create an Installer for the application I built. The first page collects information (user and database), when the form is submitted an SQL is dumped into the server and the second page will confirm the installation (or show an error). The problem is that the setup application (setup_c

Re: Dynamic Subdomains and Wildcard DNS

2006-07-10 Thread brandags
That makes sense. My application will also be using the same database and folders. I've been experimenting a little and have come up with a solution that's working fairly well, but just needs a little tweaking. I actually didn't need to use .htaccess at all, but used routes to route all requests t

Re: Dynamic Subdomains and Wildcard DNS

2006-07-10 Thread Martin
Thought Iäd explain further: The reason I load one bootstrap and one database file for each subdomain is that they all need their own specific settings. In my application, each domain represents a completely "seperate" application running its own database and other settings. for example: client1.

Re: A little help please?

2006-07-10 Thread SeanCallan
Fantastic! Thanks for the help, I added in the hasMany and belongsTo and everything works perfectly! Thanks again AD7six --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send

Separating Models into folders

2006-07-10 Thread StinkyTofu
I am trying to organize the models in my CakePHP application, right now I have some 25 models sitting in the same folder on the server (/wwwroot/app/models/). What I would like to do is to create sub-folders under the models folder and then categorize the models into respective folders in order t

Help with Deletes

2006-07-10 Thread Scott Sharkey
Hi All, I'm rapidly nearing the completion of my first serious cake app (thanks to everyone for all the help!). I am having a problem with deletes. I have several models (artists, artworks, texts, etc). The relationsthips are: artist hasMany artworks, hasMany texts artwork b

redirect to login page

2006-07-10 Thread rpetrain
When I get redirected to login page from the page that I was trying to view it looks like this: http://localhost/Trans2/users/login/?from=admin/ Is that what is should look like? Should the params being handed to the page look like that? --~--~-~--~~~---~--~~ Yo

Re: Scaffolding - in conjunction with display / password protected?

2006-07-10 Thread AD7six
Hi Stalemate, by using routes and beforeScaffold you can successfully create any url you want and make sure that the public can't access it ;). Cheers, AD7six --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake

Scaffolding - in conjunction with display / password protected?

2006-07-10 Thread Stalemate
It would seem very usefull to get scaffolding up and running in a sub-directory for a controller, where the root can still be used to display the application publicly ex. /widgets/ has the surfable interface to see the data and /widgets/admin/ is a scaffolded password protected zone where data

Scaffolding - in conjunction with display / password protected?

2006-07-10 Thread Stalemate
It would seem very usefull to get scaffolding up and running in a sub-directory for a controller, where the root can still be used to display the application publicly ex. /widgets/ has the surfable interface to see the data and /widgets/admin/ is a scaffolded password protected zone where data

Re: Early routing issue, putting site at root - Missing Controller

2006-07-10 Thread AD7six
Hi Stalemate, For what you have asked, I think the answer is:yes However, you could access your add method with the url "/stuffs/add". Bear in mind that the home page route just means that "/" is understood to mean "/stuffs/index" it doesn't affect other urls, and if it did as soon as you have 2

Early routing issue, putting site at root - Missing Controller

2006-07-10 Thread Stalemate
I have cakephp at my domains root. I make the Default Index route like so: $Route->connect ('/', array('controller'=>'stuffs', 'action'=>'index')); I want to add a "add" thtml to my stuffs table accessable at /add When I add an add function to the controller and hit the directory from the web

Re: Call For CakePHP Database Driver Maintainers

2006-07-10 Thread nate
That's great Ryan, thanks for your work on the manual. I'm sure John will appreciate it. Let me also take this opportunity to widen the scope for candidates. If you *use* any of the databases listed above, and are willing to provide feedback that will help improve them, or are willing to test t

Re: Idea?

2006-07-10 Thread nate
Well, they're both good ideas, but... 1. Checking for a double-POST would be the responsibility of the Controller, not the Model. The Controller already has a method called postConditions, which allows you to turn a POSTed data array into one suitable for passing as a set of conditions to find/f

Re: Getting Blank Page after refreshing

2006-07-10 Thread [EMAIL PROTECTED]
Is the source code terminated early or is the source code complete? Perhaps the point were the output ends prematurely is an indication toward the faulty module. An updated php extension or a previously unused function of an older extension may cause the segmentation fault. Perhaps it is possibl

Re: Question about CakePHP controller.... I don't get it

2006-07-10 Thread nate
One thing though: model names should be CamelCased, i.e.: var $uses = array('User', 'Post'); and $posts = $this->User->Post->findAll(); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post t

belongsTo - saving data to two tables

2006-07-10 Thread Q
Hi, This is probably going to be a fairly obvious fix, but its got me stumped. I have 2 tables users and counsellors. The counsellors table is associated with the users table (belongsTo) and the users table to counsellors via hasOne. What i want to achieve is to have a user automatically creat

Re: Getting Blank Page after refreshing

2006-07-10 Thread [EMAIL PROTECTED]
Yes i can see the source code, that is realy strange. In my apache2 error logs i can find this notices: child pid exit signal segmentation fault (11) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" g

Re: HeadHelper problem

2006-07-10 Thread davide
davide wrote: > Maybe I mess something but I can't get what. > > I want to add a custom css to a view. Even if I added to controller, > layout and view, I can't get the css link in the rendered page. See the > bottom for code snippets. Sorry guys, I'm very stupid. I was editing the wrong view...

Re: using one component inside another

2006-07-10 Thread Ryan Petrain
Langdon,Not to sound stupid, but did you check to see if the variable that you store the session object is not out of scope outside of the start up function?On 7/9/06, kitten <[EMAIL PROTECTED]> wrote: Hi Langdon,>> The component has the code you recommended in its startup() method, and> I can acc

HeadHelper problem

2006-07-10 Thread davide
I'm trying to use the HeadHelper[1] (v. 0.41). But I'm getting a strange behaviour. Maybe I mess something but I can't get what. I want to add a custom css to a view. Even if I added to controller, layout and view, I can't get the css link in the rendered page. See the bottom for code snippets.

Re: Cake test suite problems / not detected by bake script

2006-07-10 Thread Mika
I'm also getting this error. I think there is an error with the TESTS define as well. Does anybody have any idea when a new version of the test suite will be released? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Idea?

2006-07-10 Thread [EMAIL PROTECTED]
May be I'm not first, but what you think about this two: 1. Add as standart function (in Model) check for double-post Some users with slow inet connection press button "Save" ("Send") twice, or a lot off for "fast sending data" (as he think...) So we need every time check: this data already in Da

Re: $html.php function url()

2006-07-10 Thread AD7six
Hi bibek, It's perhaps optimistic to expect replies over a weekend, I think many readers will not yet have seen your post ;). It looks like you not using mod_rewrite (which isn´t a problem) what version of cake are you using? if it´s less than say 3200 it would be a good idea to take the nightl

Re: Getting Blank Page after refreshing

2006-07-10 Thread [EMAIL PROTECTED]
The headers look fine and the content length indicates that there are some things that should show up in your browser. Can you view the source code? Perhaps there is something trivial like an hidden input tag that is not closed or an unclosed comment that hides the entire content of the page: htt

Re: Question about CakePHP controller.... I don't get it

2006-07-10 Thread Mika
yup. If you want to use more than one table then use: eg: var $uses = array('user', 'post'); Of course if users are linked to posts in the model then you could use eg: var $uses = array('user'); and then get posts through the user like eg: $posts = $this->user->post->findAll(); --~--~

Re: Getting Blank Page after refreshing

2006-07-10 Thread [EMAIL PROTECTED]
thanks, what problems do you have with mod_rewrite? Here are the headers of the blank page: ### Date: Mon, 10 Jul 2006 09:44:06 GMT Server: Apache/2.0.54 (Debian GNU/Linux) DAV/2 SVN/1.1.4 PHP/5.0.4 X-Powered-By: PHP/5.0.4 Set-Cookie: ZDEDebuggerPresent=php,phtml,php3; path=/ PHPSESSID=2082cf1b94

Re: Getting Blank Page after refreshing

2006-07-10 Thread [EMAIL PROTECTED]
Hi Alex, do you have access to the webservers log? I had similar problems in the past - not with cake though - were internal server errors showed blank pages without an error message. In my case it had been a problem with mod_rewrite. Perhaps you can use Firefox's Web Developer Extension to chec

Re: Getting Blank Page after refreshing

2006-07-10 Thread [EMAIL PROTECTED]
Sorry i forgot a detail: when i see the blank page, one refresh is enough to show my wanted page. --~--~-~--~~~---~--~~ 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@googl

Getting Blank Page after refreshing

2006-07-10 Thread [EMAIL PROTECTED]
HI Everybody Sometimes i got a blank page after refreshing a cake page. It is not reproducible. I am Using Rev 2951 with debug level 1, no caching enabled. please help me with that. alex --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: ODBC connecting to VFP 6.0 dbf

2006-07-10 Thread Michael Wai
oops ... forgot to say 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 [EM

ODBC connecting to VFP 6.0 dbf

2006-07-10 Thread Michael Wai
I've connected the ODBC successfully using following configure: var $AAAitemDB = array('driver' => 'odbc', 'connect' => 'odbc_connect', 'database' => 'AAAItemDB'); The AAAItemDB is the name which I set in ODBC in

Re: How to specify 2 $belongsTo

2006-07-10 Thread AD7six
$belongsTo = Array("post","user"); You can also just use a string "post,user" I think. Cheers, AD7six --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-ph

Re: Logging with CakePHP

2006-07-10 Thread Gonçalo Marrafa
On Sun, 9 Jul 2006 16:58:54 +1000 "Ryan Blunden" <[EMAIL PROTECTED]> wrote: > Hey mate, > > Ryno here from the CakePHP Google group. > > Just wondering if you've come up with a solution for logging application > events to your database? I'm currently building an app that needs the > same thin

How to specify 2 $belongsTo

2006-07-10 Thread [EMAIL PROTECTED]
I apologise in advance as I know this must've been asked before but just not sure what to search for. Going through the manual at the moment and trying to extend each tutorial to make sure I have actually learnt something and I'm stuck on the models chapter and I have hit a snag which I know must

Re: Question about CakePHP controller.... I don't get it

2006-07-10 Thread milicic.marko
OK. But, is it 'common' to use that trick for home page? I mean.. home page displays data from many tables tnx in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, s

Populate model data

2006-07-10 Thread [EMAIL PROTECTED]
Hi there, I've just begun baking with Cake on an intranet project and the results are great. A minor problem showed up today and searching the Wiki and the Groups did not yield a solution. My app receives POST-requests from a 3rd party server to a URL on my Server, e.g. http://example.com/app/me

Re: Design an hirearchy?

2006-07-10 Thread [EMAIL PROTECTED]
Sorry for the late response; I got it with PHP directly simply by using a field in my MySQL record named "father_id" and doin' some FOR cycles to print it out correctly so that it seems a real tree. Now, for the checkboxes question...well, I used a form for every object and I used a Submit button

Re: A little help please?

2006-07-10 Thread AD7six
Hi Sean, You need to create a model for your galleries and images (sounds like you did that already), If you define your gallery to hasMany Images, and your image to belongTo Gallery then you would only need code like this in your controller. function view ($id) { // there is no need to directly