How to create lang-paginator?

2008-05-20 Thread [EMAIL PROTECTED]
When I use two (three) language, my Routes look like: /:lang/:controller/:action/ But, How to setup helper paginator for creating url like this? $paginator->next(__('next', true).' >>', array('url' => array($lang)), null, array('class'=>'disabled'));?> Made url like (for example): /members/in

Re: Advanced routing and controller redirecting

2008-05-20 Thread Jonathan Snook
On Wed, May 21, 2008 at 12:49 AM, Travis <[EMAIL PROTECTED]> wrote: > > Yes, I would like to display the data differently depending on the > attributes passed in. Then set up three different routes for it, each pointing to its own action Router::connect('/:controller/:year/:month/:day', array('a

Re: Advanced routing and controller redirecting

2008-05-20 Thread Travis
Yes, I would like to display the data differently depending on the attributes passed in. On May 20, 6:16 pm, "Jonathan Snook" <[EMAIL PROTECTED]> wrote: > On Tue, May 20, 2008 at 7:07 PM, Travis <[EMAIL PROTECTED]> wrote: > > > I am trying to create a controller that acts similar to that of which

Re: Cake Book

2008-05-20 Thread Action
In the sidenav under "Menu" you can click "All In One Page": http://book.cakephp.org/complete/3/the-manual On May 21, 12:12 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I have been having terrible luck trying to find anything in the new > book, I've been pulling my hai

Cake Book

2008-05-20 Thread [EMAIL PROTECTED]
Hi everyone, I have been having terrible luck trying to find anything in the new book, I've been pulling my hair out while using it, does anyone have a copy of the tempdocs? I found them very useful and I could find all the information with a quick search in my browser, now I have to navigate thr

Re: HTML Helper webroot not correct

2008-05-20 Thread Joel Perras
Set a RewriteBase condition in your .htaccess files in app/.htaccess and app/webroot/.htaccess. On May 20, 7:49 pm, Tobes <[EMAIL PROTECTED]> wrote: > Hi all, > > I've just started playing with CakePHP & have found that, because I'm > not using a domain name to access my site, but instead using a

mods

2008-05-20 Thread mark
I modified your dbo_informix.php file as follows: function connect() { $config = $this->config; $connect = $config['connect']; $this->connected = false; $host = $config['database'] . '@' . $config['host']; //modified by mark $argHostname = $config

Re: Multiple rule Validation causes Redirect to fail.

2008-05-20 Thread Chris Hartjes
On Tue, May 20, 2008 at 10:10 PM, Mr-Yellow <[EMAIL PROTECTED]> wrote: > > Email component loads all your helpers in as part of it's rendering of > the email view into a variable. > > This causes the helpers to be included along with any whitespace they > may have. > > So deeply hidden whitespace

Re: Multiple rule Validation causes Redirect to fail.

2008-05-20 Thread Mr-Yellow
Email component loads all your helpers in as part of it's rendering of the email view into a variable. This causes the helpers to be included along with any whitespace they may have. So deeply hidden whitespace issues with EmailComponent = Helpers with whitespace -Ben --~--~-~--~~-

Cake PHP / Flash Question

2008-05-20 Thread Kyle Decot
I am building a desktop php application for a local business. They need to be able to take photos of customers with a webcam and then save the image to a corresponding entry. Does anyone know of a Flash tutorial or open source program where a photo can be captured with the webcam and then send the

Re: Multiple rule Validation causes Redirect to fail.

2008-05-20 Thread Mr-Yellow
https://trac.cakephp.org/ticket/4714 Whitespace coming from EmailComponent. Haven't found where yet. -Ben --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-p

Re: Is migrations support planned for Cake?

2008-05-20 Thread Dardo Sordi Bogado
> For example, > you may want to provide a simple web based installation for you > application. Well, with a few lines of code you could make that > happen. I'm already doing that (borrowed the code from the schema shell). Schema rocks! --~--~-~--~~~---~--~~ You

Re: Is migrations support planned for Cake?

2008-05-20 Thread Dardo Sordi Bogado
On Tue, May 20, 2008 at 5:41 PM, Aaron Shafovaloff <[EMAIL PROTECTED]> wrote: > > It'd be great if schema arrays could include an "old_name" field, so > that CakePHP could not only create fields and create tables, but > rename them. > Get my drift? If we could somehow tell Cake the history of a >

Re: Is migrations support planned for Cake?

2008-05-20 Thread Dardo Sordi Bogado
>> To me there seem to be 3 possible orders: C-E-D, C-D-E, E-C-D. > > Then in that edge case, you simply modify either migrations > themselves, or the timestamp, so that the order is correct. I don't think that two developers working in parallel can be considered and edge case, and being that a

Re: open "real" url

2008-05-20 Thread lance_mountain
> When I try to open that url cake of course looks for a ststistics > controller. How can I open the "real" url? Do I have to change > the .htaccess? This is one example of how you could set up the htaccess ignore rule: http://bin.cakephp.org/saved/32472. In this example, /stats is the URL to ign

Re: Is migrations support planned for Cake?

2008-05-20 Thread Gwoo
Ok, since I wrote CakeSchema, I suppose I could elaborate on some of its uses. I think most people have understood what it was intended to do, though I have not thoroughly read all of the previous messages. The basic idea behind CakeSchema is to have a complete snapshot of your application's data

Re: Is migrations support planned for Cake?

2008-05-20 Thread Dardo Sordi Bogado
> Well here's the deal... > > I played around with Schema a bit last night. I'm really happy now :P > I have only a few > issues with it in practice: > 1. It doesn't handle autoincrement correctly in the latest nightly > build when you generate a schema from an existing table. It's working f

Re: Advanced routing and controller redirecting

2008-05-20 Thread Jonathan Snook
On Tue, May 20, 2008 at 7:07 PM, Travis <[EMAIL PROTECTED]> wrote: > > I am trying to create a controller that acts similar to that of which > you find commonly on blogs. I want the user to be able to type > http://www.example.com/2008/05/20/, http://www.example.com/2008/05/, > and http://www.exa

HTML Helper webroot not correct

2008-05-20 Thread Tobes
Hi all, I've just started playing with CakePHP & have found that, because I'm not using a domain name to access my site, but instead using a sub- folder, the HTML helper is using / as the webroot, rather than the sub- folder the site is in. Any advice on how to correct this welcomed. Thanks, T

Re: open "real" url

2008-05-20 Thread Jonathan Snook
Yes, you'll need to add an exception to your .htaccess file to ignore that folder. On Tue, May 20, 2008 at 5:53 PM, donnerbeil <[EMAIL PROTECTED]> wrote: > > Hi! > > I have my web statistics in www.mydomain.com/statistics > > When I try to open that url cake of course looks for a ststistics > con

Re: Advanced routing and controller redirecting

2008-05-20 Thread 3lancer.eu
Hi, > How do I make it such that each different variation of the date gets > redirected to the appropriate view? Thanks! I'd personally go for 3 simple regexps, 1 for year, 1 for year/month, 1 for year/month/date... Piotr --~--~-~--~~~---~--~~ You received this

Advanced routing and controller redirecting

2008-05-20 Thread Travis
I am trying to create a controller that acts similar to that of which you find commonly on blogs. I want the user to be able to type http://www.example.com/2008/05/20/, http://www.example.com/2008/05/, and http://www.example.com/2008/ to be directed to an archive for the current day, month, and y

open "real" url

2008-05-20 Thread donnerbeil
Hi! I have my web statistics in www.mydomain.com/statistics When I try to open that url cake of course looks for a ststistics controller. How can I open the "real" url? Do I have to change the .htaccess? Donnerbeil --~--~-~--~~~---~--~~ You received this message

Fatal error: Class 'Behavior' not found in console.php line 65

2008-05-20 Thread rob . dingwell
Does anyone have any idea what causes this. I'm trying to run the console and I keep getting this output. Welcome to CakePHP v1.2.0.6311 beta Console --- Fatal error: Class 'Behavior' not found in cake/console/ libs/console.php on line

Re: General purpose page / design issues

2008-05-20 Thread spub
In terms of adding small pieces of functionality I tend to use a mixture of requestActions and renderElement. For example in an ecommerce site I may use $categories = $this- >requestAction('/categories/index'); to retrieve the categories and display them on the index page. Same would apply for f

Re: Vendor issue: Duplicate class name

2008-05-20 Thread John David Anderson
On May 20, 2008, at 4:36 PM, Renan Gonçalves wrote: > Why not Cake_*ClassName* convention? Like Zend. BecauseZendHasReallyLongClassNames. (imho) -- John > On Tue, May 20, 2008 at 3:51 PM, jonknee <[EMAIL PROTECTED]> wrote: > > On May 20, 3:36 am, Matt Huggins <[EMAIL PROTECTED]> wrote: > >

Re: Vendor issue: Duplicate class name

2008-05-20 Thread Renan Gonçalves
Why not Cake_*ClassName* convention? Like Zend. On Tue, May 20, 2008 at 3:51 PM, jonknee <[EMAIL PROTECTED]> wrote: > > On May 20, 3:36 am, Matt Huggins <[EMAIL PROTECTED]> wrote: > > I'm trying to import a vendor class, but the class I'm importing in > > turn references another 3rd party class n

Re: CakePHP Forum Software?

2008-05-20 Thread Matt Huggins
I tried. There's one project that's intended to help integrate phpBB with CakePHP, but it's outdated. Then there are 2 forum projects from last year that only had a couple updates and have no files available for download. On May 20, 5:21 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > you migh

Re: CakePHP Forum Software?

2008-05-20 Thread Samuel DeVore
you might look in cakeforge.org On Tue, May 20, 2008 at 3:18 PM, Matt Huggins <[EMAIL PROTECTED]> wrote: > > I've tried to get a few known forums (phpBB, SMF, etc.) to integrate > into my custom CakePHP CMS, but I'm having so much difficulty. I was > trying to see if anyone has made a forum cod

CakePHP Forum Software?

2008-05-20 Thread Matt Huggins
I've tried to get a few known forums (phpBB, SMF, etc.) to integrate into my custom CakePHP CMS, but I'm having so much difficulty. I was trying to see if anyone has made a forum coded in CakePHP that I can plug into my app, but of course a Google search for "cakephp forum" results in forums disc

A couple thoughts? Your suggestions?

2008-05-20 Thread rloaderro
Hello, I am a big fan of Cake. Recently I have been having to use other MVC frameworks and came across a couple bits that I would love to see duplicated in Cake (my framework of choice). - Symfony function name caching When Symfony is in development mode it compiles an index of every function of

Re: General purpose page / design issues

2008-05-20 Thread Matt Huggins
I've been using CakePHP for almost 2 years now, and I still don't know what the best way to do this is. The way I do it is I end up creating an added action in one of my controllers, and I change the routing for the homepage to point there. I'd really like to know of a better approach to this, a

Re: Is migrations support planned for Cake?

2008-05-20 Thread Aaron Shafovaloff
It'd be great if schema arrays could include an "old_name" field, so that CakePHP could not only create fields and create tables, but rename them. In other words, something like: class BlogSchema extends CakeSchema { public $posts = array( 'id' => array('type' => 'integer', 'null' =>

Re: Is migrations support planned for Cake?

2008-05-20 Thread Keith
Well here's the deal... I played around with Schema a bit last night. I have only a few issues with it in practice: 1. It doesn't handle autoincrement correctly in the latest nightly build when you generate a schema from an existing table. 2. The downloadable 1.2 beta has major bugs in it lik

Re: Email Component sends email with empty body

2008-05-20 Thread Ketan Patel
Hi, for debug... it doesn't print now.. They changed the code for debug, so now it is only put in the Session variable. So to print out in the controller just for debugging to do this... pr($this->Session->read('Message.email')); Earlier in the code, they had the 'echo $fm' statement which is no

General purpose page / design issues

2008-05-20 Thread W Marsh
Hi. If you look at most web sites you will see that their index pages are generally a mish-mash of different functionality. For example, they might give a summary of recent blog posts coupled with other statistics, all relating from various models in the system. How does this fit into the model-

Re: Email Component sends email with empty body

2008-05-20 Thread donnerbeil
Hi! I couldn't get the delivery=debug working. But I now found out, that if I set sendAs to 'html' or 'text' instead of 'both' the email is received with a correct mail body. I finally found this ticket https://trac.cakephp.org/ticket/1851 that describes something similiar. But as I use a fresh n

oracle connection

2008-05-20 Thread Valerio
Hi, I'm a new cakephp developer... I'm trying to connect to an Oracle db but it doesn't work. I use a native oracle driver and my connection parameters into the database.php file are: var $default = array('driver' => 'oracle', 'connect' => 'oci_c

Re: Vendor issue: Duplicate class name

2008-05-20 Thread Matt Huggins
Ugh, I'm screwed if there's nothing I can do about this now. :/ On May 20, 1:51 pm, jonknee <[EMAIL PROTECTED]> wrote: > On May 20, 3:36 am, Matt Huggins <[EMAIL PROTECTED]> wrote: > > > I'm trying to import a vendor class, but the class I'm importing in > > turn references another 3rd party clas

Admin Routing Problem

2008-05-20 Thread Joel K.
Hello, I'm using admin routing for a personal site that I'm building: mrjoelkemp.com. Admin routing was working on the appropriate modules (namely software and writing), however, oddly, it seems that over the past week the routing has been failing on the writing module, but not the software modul

Re: Vendor issue: Duplicate class name

2008-05-20 Thread jonknee
On May 20, 3:36 am, Matt Huggins <[EMAIL PROTECTED]> wrote: > I'm trying to import a vendor class, but the class I'm importing in > turn references another 3rd party class named "cache". Since there is > already a CakePHP class named "Cache", I get an error message stating > "Fatal Error: Cannot r

Re: Is migrations support planned for Cake?

2008-05-20 Thread joelmoss
> To me there seem to be 3 possible orders: C-E-D, C-D-E, E-C-D. Then in that edge case, you simply modify either migrations themselves, or the timestamp, so that the order is correct. One of the best things about Migrations, is that they are fully incremental, and each one can be rolled back v

Re: Distributed Cake

2008-05-20 Thread Mateo San Román
Great! I will check if this is waht I've been looking for Thank you, Gwoo! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsu

Playing with Cake: how to hack into Cake's core within 20 lines codes

2008-05-20 Thread RainChen
Some times I want to add some methods or common attributes to all Cake's objects. We know that most of the classes are extended from class Object. But there are not something like AppObject as a AppModel style API for us to extend objects. I dug deep into Cake's core source. Finally I found Cake l

Re: Where do I find a cakephp developer in London?

2008-05-20 Thread John David Anderson
On May 20, 2008, at 11:23 AM, eagerterrier wrote: > > I work for a web design agency in NW London, UK. > > We have been searching for a cakephp developer for 6 months now with > no joy. Even a sound php developer with limited MVC experience would > be good. We have spent around £2k on recruitmen

Where do I find a cakephp developer in London?

2008-05-20 Thread eagerterrier
I work for a web design agency in NW London, UK. We have been searching for a cakephp developer for 6 months now with no joy. Even a sound php developer with limited MVC experience would be good. We have spent around £2k on recruitment agency fees all with no joy. Does anyone know a good place t

Re: Distributed Cake

2008-05-20 Thread Gwoo
http://c7y.phparch.com/c/entry/1/art,cakephp-rest --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send em

vendorPaths - How to use them in an appropriate way

2008-05-20 Thread schnumsel
Hi. I am looking arround now for quite a while now (code and forums) but couldn't find anything by now, so i'll make that post: I am transfering many applications from cake 1.1 to cake 1.2. While doing so, i thougth cleaning up would be a nice thing. so i figured out a structure where i can ke

Re: validation / FormHelper::error

2008-05-20 Thread Break
yes i know, i tested that but the the error message still doesnt appear. i really get headaches right now... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake

Distributed Cake

2008-05-20 Thread Mateo San Román
Hi, I am currently working in a software system whose modules reside in different servers. Is there a way that Cake could use actions from remote controllers without breaking the neat syntax it has? Every idea is welcome! Best Regards, Mateo --~--~-~--~~~---~--~

Re: Limiting Routes to specific Controllers

2008-05-20 Thread benjam
Both of those options seem like they would work perfectly. I think I will implement the array version for my needs right now, and look at the prefixing as a cleaner, more 'Cake' way in the future (I'm on a deadline right now, and need something quick). Thanks to you both. --~--~-~--~

Re: validation / FormHelper::error

2008-05-20 Thread clrockwell
Without using $form->error, cake will default to displaying the error unless you set 'error' => 'false' so you do not have to use $form- >error. You can then define the error message in your model: var $validate = array( 'firstname' => array( 'rule'

Re: Setting the meta description

2008-05-20 Thread Jared
Kyle, Thanks that is what I ended up doing just wanted to make sure that was the right way to do things. On May 19, 6:41 pm, Kyle Decot <[EMAIL PROTECTED]> wrote: > This is how I do it. In my layout I have: > > content = ''$metaDescription" />"; } ?> > > then in my controller, I do: > > $md = "M

Re: Problem with HABTM not getting related data

2008-05-20 Thread Joel Perras
If I understand correctly, you want to be able to find parts that belong to a common model from your Model controller. First, you should add in the 'with' parameter to your Parts model and Model model (say that a couple times fast). In your PartsModel: 'with'=> 'ModelsPart' and similarly in your

Re: Issue with displaying image - trailing slash on url causes issue

2008-05-20 Thread clrockwell
On May 20, 10:43 am, grigri <[EMAIL PROTECTED]> wrote: > I'd have thought this would work: > > > #header_right { background: #FFF url( base/rotate/'.$imgBase.'/'.$session->read('sessionImg.'.$imgBase)); ?>) 0 0 > no-repeat; } > > And you'd be correct, that wo

validation / FormHelper::error

2008-05-20 Thread Break
Hey guys, i got a problem with the formhelper::error. I'm know tryin for 2 days to fix this problem: The validation in the code below works fine. if the field is empty the setFlash-Msg appears and the data isn't saved. But the error message doesnt appear. MODEL ###

Re: SQL Error: 2014

2008-05-20 Thread Ma'moon
ok, now i got it done :-) it turned out that calling consequent stored procedure using $model->query( $queryStr ) is causing memory issues through the execution of the controller accessing the target associated model, to solve this issue i have created a method inside my user defined model, call it

Re: Finding popular activities

2008-05-20 Thread Dan Soendergaard
Thank you so much! I'm still not entirely sure about how it works, but I'll be reading up on bindModel :) I've taken a look at counterCache and yes, it looks much easier. I'll consider using it instead. Again - thanks! On 20 Maj, 15:41, grigri <[EMAIL PROTECTED]> wrote: > $this->Activity->bindMo

Re: Email Component sends email with empty body

2008-05-20 Thread donnerbeil
@Ketan My new send function looks now like that: function _sendNewUserMail($id) { $User = $this->User->read(null,$id); $this->Email->to = '[EMAIL PROTECTED]'; $this->Email->bcc = array('[EMAIL PROTECTED]'); // note

Re: Issue with displaying image - trailing slash on url causes issue

2008-05-20 Thread grigri
I'd have thought this would work: #header_right { background: #FFF url(read('sessionImg.'.$imgBase)); ? >) 0 0 no-repeat; } --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: Email Component sends email with empty body

2008-05-20 Thread donnerbeil
Hi! Here is my send function in users_controller.php The $id is given from another function. I debug($id) and it's ok. function _sendNewUserMail($id) { $User = $this->User->read(null,$id); $this->Email->to = '[EMAIL PROTECTED]'; $this->Email->bcc = array('[EM

Re: Limiting Routes to specific Controllers

2008-05-20 Thread Dardo Sordi Bogado
> How (if it's possible), can I limit the controllers allowed to go > through the /training dir? I only have four controllers that I want > to have access to the /training dir, all other requests should show an > error, or better yet, redirect to the proper controller directory. I'm not sure but

Re: Problem calling user controler from app controler.

2008-05-20 Thread clrockwell
You can put the authentication in users_controller.php, make an element in app/views/elements that has your login form. Put the login form anywhere using $this->element(). When you call your authentication, store the current url in a session and after success, redirect to that URL. Or use ajax

Re: Email Component sends email with empty body

2008-05-20 Thread Ketan Patel
There is a delivery option for debug in the EmailComponent. $this->Email->delivery = 'debug'; //'smtp'; Use that for development and testing of the emails. With 'debug' option, you will see your email content print out on the page itself which helps in faster debugging. Once you are happy with o

Re: Problem calling user controler from app controler.

2008-05-20 Thread Ketan Patel
You do not have the concepts clear based on your comments. However do this. Create an element that shows the 'users login' form (which should be handled by only one controller, 'users' in this case) if the user is not logged in. Then on view/layout just call this element and you will have the log

Re: Problem calling user controler from app controler.

2008-05-20 Thread Knud Soerensen
Filip Camerman wrote: > Hi, > The bit of code you pasted does give the impression that you have some > things mixed up. For an example of simple user login, read > http://book.cakephp.org/view/327/simple-user-authentication . > > The problem with the example is that it is to simple ! First I d

Re: Issue with displaying image - trailing slash on url causes issue

2008-05-20 Thread [EMAIL PROTECTED]
Thanks for the replies jonknee and 3lancer.eu, The generated HTML is a style tag that is inserted into each page, so this: #header_right { background: #FFF url(base/ rotate//read('sessionImg.' . $imgBase);?>) 0 0 no

Re: Finding popular activities

2008-05-20 Thread grigri
$this->Activity->bindModel(array( 'hasOne' => array( 'TotalUsers' => array( 'className' => 'User', 'fields' => 'COUNT(TotalUsers.id) AS num_users' ) ) ); $popularActivities = $this->Activity->find('all', array( 'conditions' => '1=1 GROUP BY Activity.id HAVING num_users >

Finding popular activities

2008-05-20 Thread Dan Soendergaard
Hi, My app contains a User model and an Activity model. A User belongsTo an Activity. The foreign key is activity_id. Now, I want to make a list of popular activities where popularity is measured by how many users are signed up for it. I'm not sure how to do this. Can I use $this->Activity->find(

Re: Layout change in edit case(help me please)

2008-05-20 Thread djiize
you're welcome I'll try to answer your questions, but I've got some warns before: - in your view, the action of your form is wrong 'action' => '/add/index' should be 'action' => '/users/add/' - you changed your flash call in 'edit' action, but not in others And now, to upload your image: Your fo

Re: Help me please for flash(swf file) handling

2008-05-20 Thread Dardo Sordi Bogado
Hi, just do as you would do if you were not using cake, but better if you get the url for the file with: $flashUrl = $form->url('/files/main_flash4.swf'); Please, next time use the paste bin : http://bin.cakephp.org On Tue, May 20, 2008 at 9:08 AM, vishal <[EMAIL PROTECTED]> wrote: > > Hi,

Re: can anybody help me for paging

2008-05-20 Thread Dardo Sordi Bogado
Start here: http://book.cakephp.org/view/164/pagination And the next time you need to paste such a lng chunk of code, pleas use the paste bin : http://bin.cakephp.org . On Tue, May 20, 2008 at 9:57 AM, vishal <[EMAIL PROTECTED]> wrote: > > Hi, >I am new on this community..can any bo

Re: Div inserted after $form->create

2008-05-20 Thread Dardo Sordi Bogado
This has been discussed here before, look for the thread. If my memory is good, it was needed for validating as XHTML Strict and solution was to edit the source code of the helper. On Tue, May 20, 2008 at 2:13 AM, Brian Rojas <[EMAIL PROTECTED]> wrote: > > I use the $form->create method in 1.2

can anybody help me for paging

2008-05-20 Thread vishal
Hi, I am new on this community..can any body help me for paging. this is my file: Admin Panel link('Add User', 'http:// 192.168.0.60/vishal/cake_1.2.0.6311-beta/app/users/add'); ?> Name Address Phone Email

Re: Problem calling user controler from app controler.

2008-05-20 Thread Filip Camerman
Hi, The bit of code you pasted does give the impression that you have some things mixed up. For an example of simple user login, read http://book.cakephp.org/view/327/simple-user-authentication . --~--~-~--~~~---~--~~ You received this message because you are subs

Re: new error

2008-05-20 Thread Sliv (Tim MacAleese)
Looks like your tmp folder isn't writeable by your web server On May 20, 3:12 am, Raistlin Majere <[EMAIL PROTECTED]> wrote: > I am getting: > > Warning: file_put_contents(/home/emmettbr/public_html/CakePHP/ > opinionsofamateurs/tmp/cache/models/ > default_emmettbr_toreadandtowrite_list) [functio

Re: file handling from cake

2008-05-20 Thread Sliv (Tim MacAleese)
Have a look at the File class: http://api.cakephp.org/1.2/class_file.html On May 20, 6:35 am, oana <[EMAIL PROTECTED]> wrote: > Hello everyone, > > I would like to know iwhat would be the way to follow if i want to > create a file from within a cakephp page. > > The situation is like this: i ha

Re: fieldset display:none inserted within $form->create

2008-05-20 Thread Sliv (Tim MacAleese)
You mean the fieldset? That's by design. There's no elegant override afaik. On May 20, 1:13 am, Brian Rojas <[EMAIL PROTECTED]> wrote: > I use the $form->create method in 1.2 like so: > > create(null,array('url' => array('controller' => > 'pages', 'action' => 'contact'), 'id' => 'ContactMiniFor

Help me please for flash(swf file) handling

2008-05-20 Thread vishal
Hi, My swf file is located in /app/webroot/files/main_flash4.swf But I don't know the correct code how to display this flash on fron end i.e on layout page. my layout file is : http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> css('style') ?>

Re: HABTM search entries help

2008-05-20 Thread oana
Thanks for the explanations, i am starting to get used to how cake works. :) And about the solution, i am so ashamed ...it was one line of code i forgot to delete from the user login function. This line was doing an update in the users table, which affected the join table too. I haven't seen i

Re: Is migrations support planned for Cake?

2008-05-20 Thread Dardo Sordi Bogado
> He addresses the answer in that post. You don't label the migration > sequentially. You label it based on UTC timestamp as the race > condition where 2 developers generate a migration at exactly the same > moment is highly unlikely. Rails 2.1 is going that way (http:// > railscasts.com/episod

Re: Layout change in edit case(help me please)

2008-05-20 Thread vishal
Thanks you very much my friend...!!! I have done the changes & my problem is solved..!!! thanks you very much.. friend can you help me in this matter also if you have few minutes for me..?? I have problem in uploading the image..I want to display the image as well as store the image in database

file handling from cake

2008-05-20 Thread oana
Hello everyone, I would like to know iwhat would be the way to follow if i want to create a file from within a cakephp page. The situation is like this: i have a view which shows an applet (this applet holds a graph which describes a conversation from an xml file; the applet loads the correct f

Re: Layout change in edit case(help me please)

2008-05-20 Thread djiize
it's due to Cake routing and URL rewriting in some cases, prefer HTML helper instead your own HTML in your layout, change by css('style') ?> and change al by image('your_image.gif') ?> And last, in your "flash" calls, don't repeat the host, path, etc... just do: $this->flash('Your detail has

Re: Making Paginator first sort direction DESC

2008-05-20 Thread Tim W
In the end my solution was to copy the paginator helper class to my application helpers directory, then in the sort method swap every instance of "asc" and "desc". It's not a great solution, but it works. I'd love to hear about better solutions to get the initial sort direction to be desc instead

Re: Re: Problem with HABTM not getting related data

2008-05-20 Thread Reza Muhammad
Thanks for the link. I did modelize my HABTM table, now I have a "ModelsPart" model, and it has a $belongsTo to Part and Model. Unfortunately, getting related parts when I'm using find() or findAll() in ModelsController doesnt work, but I can get related models from PartsController. Any m

Layout change in edit case(help me please)

2008-05-20 Thread vishal
Hi, Myself vishal facing a problem while editing.when i edit the layout changes. so anybody help me please.. But in case of add it look well. This is the details of the file: Layout file: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";>

Re: Problem with HABTM not getting related data

2008-05-20 Thread Matt Huggins
You need to modelize your HABTM table. Hopefully this link will help you out. http://cricava.com/blogs/index.php?blog=6&title=modelizing_habtm_join_tables_in_cakephp_&more=1&c=1&tb=1&pb=1 On May 20, 3:04 am, Reza Muhammad <[EMAIL PROTECTED]> wrote: > Hi guys. > > I just tried to setup a HABTM

Re: HABTM search entries help

2008-05-20 Thread David C. Zentgraf
On 20 May 2008, at 16:48, oana wrote: > $this->User->Conversation->findAll() works, but retieves all the > conversations, not just the ones for a certain user True. Even though it looks like you're working on a User's Conversations, $this->User->Conversation->findAll(); and $this->Conversation

Re: SQL Error: 2014

2008-05-20 Thread Ma'moon
According to this link " http://dev.mysql.com/doc/refman/5.0/en/commands-out-of-sync.html"; the sql result set should be freed from memory in order to execute consequent queries after each other, am not sure if this is a bug in CakePHP or not but it seems that the result set is not being freed from

View this page "CakePHP Unofficial Resources"

2008-05-20 Thread Matt Huggins
Added a link to Facebook application development with CakePHP Click on http://groups.google.com/group/cake-php/web/cakephp-unofficial-resources - or copy & paste it into your browser's address bar if that doesn't work. --~--~-~--~~~---~--~~ You received this messa

Problem with HABTM not getting related data

2008-05-20 Thread Reza Muhammad
Hi guys. I just tried to setup a HABTM relationship between "Model" and "Parts". In my "Model" model. I already created tables called 'models', 'parts', and 'models_parts'. Here's what I have in my models: - model.php class Model extends AppModel { var $name = 'Model';

Re: Problem calling user controler from app controler.

2008-05-20 Thread Knud Soerensen
Ketan Patel wrote: > Looks like you don't know what you are trying to do here. Read the > manual. As you don't have a clue what a model and controller is. In > your code, you are importing the User model and then calling the > action of the users controller. On top of that, this is not the way to

Re: HABTM search entries help

2008-05-20 Thread oana
Ignore that, i didn't do enought testing before posting this. The problem is still there, but i have more info. In my users controller: $this->User->Conversation->findAll() works, but retieves all the conversations, not just the ones for a certain user $this->User->ConversationsUser->findAllByU

Re: Validating only specific fields within a model?

2008-05-20 Thread Matt Huggins
Thanks jonknee, I didn't even consider the 'on' key in my validation rules. I'll have to go back to this and see if that solution works better than the modification I made to app_model.php that I posted above. :) On May 19, 10:40 pm, jonknee <[EMAIL PROTECTED]> wrote: > > Does anyone have any in

Re: Validating only specific fields within a model?

2008-05-20 Thread Matt Huggins
Yes, that's basically what is happening. Even when using saveField (with the validate parameter set to true), which only saves a single field of a model, the entire model is validated based upon whatever field names are specified in the model's $validate variable. On May 19, 10:39 pm, "David C.

How display & stored images

2008-05-20 Thread vishal
Hi, Myself vishal facing a problem while uploading the image.Actually the image path stored in the database.I want to dispaly that uploaded image on front. This is my code : add.ctp file Add User create('User', array('action' => ''); echo $form->input('name'); echo $form->input('address',

Vendor issue: Duplicate class name

2008-05-20 Thread Matt Huggins
I'm trying to import a vendor class, but the class I'm importing in turn references another 3rd party class named "cache". Since there is already a CakePHP class named "Cache", I get an error message stating "Fatal Error: Cannot redeclare class cache in [filename]". Does anyone have any clue how

Div inserted after $form->create

2008-05-20 Thread Brian Rojas
I use the $form->create method in 1.2 like so: create(null,array('url' => array('controller' => 'pages', 'action' => 'contact'), 'id' => 'ContactMiniForm', 'default' => false, 'type' => 'post')) . "\n"; ?> and the outputted HTML includes a div set to 'display:none' : does anyone know if there

new error

2008-05-20 Thread Raistlin Majere
I am getting: Warning: file_put_contents(/home/emmettbr/public_html/CakePHP/ opinionsofamateurs/tmp/cache/models/ default_emmettbr_toreadandtowrite_list) [function.file-put-contents]: failed to open stream: Permission denied in /home/emmettbr/public_html/ CakePHP/cake/basics.php on line 936 Warn

  1   2   >