CakePHP 3 Book: Is anyone writing an introductory book to help beginners get started?

2015-07-12 Thread Paul M
Is anyone writing an introductory book about CakePHP 3 aimed at beginners? I'm asking because I've seen books about other frameworks such as Yii and Laravel. They can typically be found on LeanPub, Amazon / Kindle, and Paktpub.com etc. But I have not seen any CakePHP 3 books. The most recent bo

Re: Form width fieldset and different button types

2015-05-19 Thread Rob M
In CakePHP 2.x, FormHelper::inputs doesn't make buttons. It makes input elements. If you want a button, try using FormHelper::submit for a submit button, or in this case FormHelper::button as in: echo $this->Form->button('Cancel upload', array('type' => 'reset', 'class' => 'btn bt

CakePhp 3.0 unable to login

2015-02-23 Thread s . m . scarano
I'm new to CakePhp framework and followed the blog tutorial. Everything went smooth until authentication part. This is my login method from UsersControllers.php, the debug line always returns false. public function login() { if ($this->request->is('post')) { debug($thi

Re: prevent uploaded file duplicate or double click in cake php?

2014-06-04 Thread Rob M
First you need to identify what makes a file unique. Is it the contents of a row? a set of rows? a row ID? Second, you need to write code to query your existing database to see if your uploaded file has already been added (run a SELECT to see if the rows you are about to add have already been a

Re: Site down after restart

2014-06-04 Thread Rob M
If this happens, start checking logs. CakePHP logs errors to /tmp/, and your server access and error logs should also be reviewed. CakePHP depends on an operating system, a web server, and a database server. Each of these need to be up and running for Cake to do its thing. -- Like Us on FaceBo

Re: 2 tables wont display

2014-05-24 Thread Rob M
It looks like your `posts` table doesn't have a `user_id` column. CakePHP convention wants it to have one so Cake can make the association "Posts belongs to Users". -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this mess

Re: 2 tables wont display

2014-05-24 Thread Rob M
It looks like your `posts` table doesn't have a `user_id` column. CakePHP convention wants it to have one so Cake can make the association "Posts belongs to Users". On Friday, May 23, 2014 12:56:48 AM UTC-4, Andrew Townsley wrote: > > I am getting an error on a simple display of 2 tables as i am

Re: CakeDC's Users plugin action overriding

2014-05-02 Thread Rob M
I think the result you seek is the default functionality? Suggestions: 1. First set it up exactly as directed in the box without overriding, and get it working. This makes you certain of correct installation, schema set-up, etc. 2. Next extend the controller as you have, with the following extra

Re: CakeDC's Users plugin action overriding

2014-05-02 Thread Rob M
I think the result you seek is the default functionality? Suggestions: 1. First set it up exactly as directed in the box without overriding, and get it working. This makes you certain of correct installation, schema set-up, etc. 2. Next extend the controller as you have, with the following extra

Re: CakeDC's Users plugin action overriding

2014-05-02 Thread Rob M
I think that the result you are expecting is simply to have the default plugin functionality? Suggestions: 1. First install and get it working out-of-the-box without any overriding. 2. After that, come back to what you've started (override UsersController as directed in the documentation) and als

$this -> render() not using correct view

2013-12-15 Thread Kristen M
Collection controller, want to use the same view file (display_collection) to display the multiple types of collections. Very basic, no plugins involved. Pretty much like straight out of the book. Problem is that the default view for the action is being rendered. public function CollectionOne(

Re: Certain models via $uses cause non-object errors in Controller

2013-12-11 Thread Kristen M
Well, I figured it out. :: facepalm:: Typos are fail. :| On Monday, December 9, 2013 6:55:37 PM UTC-6, Kristen M wrote: > > > I need to include a couple of models in various controllers. However, when > I try to put the models in $uses() they invariably throw non-object errors >

Certain models via $uses cause non-object errors in Controller

2013-12-09 Thread Kristen M
I need to include a couple of models in various controllers. However, when I try to put the models in $uses() they invariably throw non-object errors even when not being called, and even when the model is totally empty. However, ONE model ("User") will play nice. There are no relationships b

Re: Layout question - adding a class to a wrapper div

2013-12-06 Thread Dave M.
Great. thanks! On Friday, December 6, 2013 12:56:55 PM UTC-5, Leandro Machado Pereira wrote: > > I don't see any problem. > > I think this is normal. > > > 2013/12/6 Dave M. > > >> I considered that approach. But what about the rest of the pages? >>

Re: Layout question - adding a class to a wrapper div

2013-12-06 Thread Dave M.
his. > > In you controller > $this->set('wrapperID', $myWrapperID); > > In your layout > echo $wrapperID; > > Best regards; > > > 2013/12/6 Dave M. > > >> Let's say I have a default layout containing this body >> (overly-simplified):

Layout question - adding a class to a wrapper div

2013-12-06 Thread Dave M.
Let's say I have a default layout containing this body (overly-simplified): fetch('content'); ?> I have a need to add a class to the wrapper id for a couple of pages on my site. It seems like creating a new layout is overkill for just one minor addition when everything inside

JOIN in belongsTo (but not HABTM)

2013-12-02 Thread Kristen M
Is this possible? Situation: Users have many Items I want to pull a User's total inventory, which sits in the inventory table. But I also need to pull some fields from the master item table (like item name) or to be able to pull items only be their type (this data sits in the master table) I

Re: need help with check/uncheck all checkbox [cakephp]

2013-11-18 Thread Dave M.
I don't think the class option works for multiple checkboxes. What you can do is specify a div and work off of that (you can also reduce your js code): echo $this->Form->input("Country", array("options" => $viewData["countryList"], "multiple" => "checkbox", "onclick" => "resetSelectAll();" ,

Re: Multiple Models In A Controller

2013-11-17 Thread Kristen M
ver_cost" => 20)); } } } ?> On Sunday, November 17, 2013 4:42:02 AM UTC-6, John Andersen wrote: > > Hi Kristen M > > Please ensure that you are using the correct model name; ensure that the > model filename is correct, etc. > > Also show us the code fo

Multiple Models In A Controller

2013-11-16 Thread Kristen M
There are several ways to do this, but in my application, only one seems to work. $this -> loadModel("Model"); >From my reading it seems there are an assortment of ways to include a Model that doesn't require re-loading a Model everytime I need it (assuming I need it multiple times within a c

Re: Best Practice Question - Components

2013-11-06 Thread Kristen M
Yeah, the point of the exercise is to do things the "Cake Way" and take advantage of all things automagical and Cake. ;) After puzzling over the docs for a bit and realizing it's not bad form to have a controller use multiple models, I decided that splitting the existing classes into a model a

Best Practice Question - Components

2013-11-05 Thread Kristen M
I'm not a new programmer (I'd say advanced beginner/intermediate) but I'm quite new to Cake and MVC in general. I've decided best way to learn CakePHP and MVC is to take an existing (functional, live) project and port it to Cake for kicks. Get the grand tour of all the basics. In my existing

Re: Does the CakePHP ready for 'Large Scale' web applications?

2013-10-21 Thread G. M. Shaharia Azam
But in this case you have 2 database. One is 'master' and another one is 'default'. So when you are saving data to 'master' and updating data by 'default' or deleting data by 'default'. Then how this 2 database will be synchronized. Data can be lost or any damage? Can you tell me the complete f

Counting related data for pagination

2013-06-14 Thread Daniel M
Hi, let's say I have two models, Tag HABTM Post. How do I tell the Tag paginator to order by the amount of posts the tag is used on? Ex.: Cake (43) Pie (31) Cookie (12) Petit Four (2) -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- Y

Re: Output to PDF with elements and styles

2013-01-23 Thread Dave M.
I had the same issue, and ended up hard-coding the full css link in the head of the pdf layout. eg. http://www.mysite.com/css/styles.css"; /> Not the most optimal solution, but it got me up and running. On Wednesday, January 23, 2013 8:19:04 AM UTC-5, Jeremy Burns wrote: > > So I got Ceeram's

Re: Access to specific data cakephp 2.x

2012-12-25 Thread Rob M
ager, and I want a manager to manage just the hotels in > his city. but this hotels can be created by another user(admin), is it > possible? I did it with isAuthorized() method, but it requires a lot of > "code (ugly code)° :p > > Paulo > > On Monday, December 24

Re: Access to specific data cakephp 2.x

2012-12-24 Thread Rob M
Hi Paulo: You are describing row-level access control, and I am doing that with CakePHP 2.0 using a modified version of Daniel Vecchiato's WhoDidIt Model Behavior (https://github.com/danfreak/4cakephp/tree/master/models/behaviors). Then I check in the controller to see if the id in the table fo

Re: 2.0 Cheat Sheet pdf

2012-12-03 Thread Sebastian M. Braun
I always would be very happy about an update of the cheat sheet! :) -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send e

Re: CakePHP 2.2 and Autocomplete Jquery

2012-11-21 Thread Rob M
This code snippet needs refactoring in order to use JsHelper, but it works: controller code (Controllers/PeopleController.php): function autoComplete() { $this->autoRender = false; $search_string = trim($this->request->query['term']); if (!is_null($search_string) && $search_string != '') { $people

Re: Session is not expiring when browser is closed

2012-11-18 Thread Chandru M
291 > > not sure about Mozilla... > > Andras Kende > http://www.kende.com > > > On Nov 10, 2012, at 3:15 AM, Chandru M > > wrote: > > Hi all, > > I am struck with this peculiar problem for a long time. > > I have created a simple login page using the auth

Re: Bad Request "URL not found" - after an JQuery change event

2012-11-18 Thread Rob M
A. To debug, I'd insert the line: console.log(load + _this.find('option:selected').val()); just above your $.ajax() call. Then watch your Javascript console when running the page to see what URL is being submitted and try submitting it manually. - Rob On Friday, November 16, 2012 1:53:13 AM UTC-

Session is not expiring when browser is closed

2012-11-10 Thread Chandru M
Hi all, I am struck with this peculiar problem for a long time. I have created a simple login page using the auth component. It seems the session is not getting expired when the browser is closed. The user gets automatically logged in when the browser is open again. I have used the suggesti

Session is not expiring when browser is closed

2012-11-10 Thread Chandru M
Hi all, I am struck with this peculiar problem for a long time. I have created a simple login page using the auth component. It seems the session is not getting expired when the browser is closed. The user gets automatically logged in when the browser is open again. I have used the suggestions

Re: how can i migrate from cakephp 1.2 to 2.x...?

2012-11-03 Thread Dave M.
1. http://book.cakephp.org/2.0/en/appendices/migrating-from-cakephp-1-2-to-1-3.html 2. http://book.cakephp.org/2.0/en/appendices/2-0-migration-guide.html I would definitely run through #1 just to make sure there are no deprecated items still in use. On Thursday, November 1, 2012 8:07:46 AM UT

Re: why cakephp doesn't support pure MVC

2012-10-15 Thread Dave M.
Also, to use the $c variable in the view, you need to set it in the controller: $this->set('c', $this->M->getX()); http://book.cakephp.org/2.0/en/controllers.html#Controller::set On Sunday, October 14, 2012 10:08:56 PM UTC-4, vinny M wrote: > > He's right seems l

Re: A website for cakephp beginners

2012-10-09 Thread Dave M.
I think the problem is that instead of supplying an answer to a question ('Be sure to add $actsAs = array('Containable); to your appModel!'), you instead provide a link to a blog post on your site which says 'Be sure to add $actsAs = array('Containable); to your appModel!'. A post which was cre

Re: struggling with containable - containing the same model twice

2012-10-09 Thread Dave M.
ethod >>> * >>> * View an operation >>> * >>> * @param string $id >>> * @return void >>> */ >>> public function view($id = null) { >>> $this->Operation->id = $id; >>> if (!$th

Re: struggling with containable - containing the same model twice

2012-10-08 Thread Dave M.
ill thinking about this. On Monday, October 8, 2012 7:45:39 AM UTC-4, José Lorenzo wrote: > > You need the alias as cricket said and in your find you need 'contain' => > array('OpUser', 'User') > > El lunes, 8 de octubre de 2012 01:50:05 UTC+2, Greg

Re: struggling with containable - containing the same model twice

2012-10-07 Thread Dave M.
another wild guess: have you attached the Containable behavior? In your AppModel: public $actsAs = array('Containable'); -dave On Saturday, October 6, 2012 2:58:54 AM UTC-4, Greg wrote: > > Sorry to keep bumping, but this is really doing my head in... > > The only "solution" i have is to load th

Re: File/Image upload

2012-09-18 Thread vinny M
Hey you can test this one : https://github.com/malikov/cakephp2.0-image-upload it's simple and straight forward. On Tuesday, October 16, 2007 4:37:47 AM UTC-7, Arendp wrote: > > Hi all! > > I have been searching for a decent file or image upload script in > CakePHP. However I have difficulties i

Re: Cake url

2012-09-09 Thread Dave M.
look at your parentheses. On Saturday, September 8, 2012 1:25:43 PM UTC-4, girl wrote: > > thanks a lottt for reply... > but I print > > $code=$params['code']; > > the problem I want to change it when if statement is true and I do > replacement > > > -- You received this message because you

Re: undefined index error

2012-08-14 Thread Dave M.
I suggest you throw a debug($weeklyroster) into your view to see how the array is actually structured. I would assume that you would want $weeklyroster[0]['Weeklyroster']['week'], $weeklyroster[1]['Weeklyroster']['week'], etc. On Monday, August 13, 2012 11:39:37 AM UTC-4, mohit wrote: > > Hi F

Re: Problem with multiple testAction calls with mocked Auth component - 2.2.1

2012-07-23 Thread Dave M.
I've discovered this doesn't happen when i am logged in to the app itself. I am quite confused. On Monday, July 23, 2012 10:58:34 AM UTC-4, Dave M. wrote: > > After upgrading to 2.2.1 from 2.0.x some of my controller tests are > failing. > It seems as if a mocked Auth comp

Problem with multiple testAction calls with mocked Auth component - 2.2.1

2012-07-23 Thread Dave M.
After upgrading to 2.2.1 from 2.0.x some of my controller tests are failing. It seems as if a mocked Auth component does not survive multiple testAction calls. Am I doing something wrong here or is this expected? CandidatesControllerTest.php public function testExportAdmin() { $Candidates = $t

Re: SaveAll issue with nested arrays

2012-07-10 Thread Harsha M V
what are the relations of the models ? does Events hasMany with feedings and characters ? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions

Re: Working with Profiles

2012-07-10 Thread Harsha M V
users(id, name, email,...) skills (id, name, description..) users_skills (id, user_id, skill_id) --> HABTM join table -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their C

Re: 1.3->2.1 migration: aco problem

2012-06-14 Thread Rob M
helping me find my error. - RM On Sunday, May 27, 2012 8:13:31 AM UTC-4, Rob M wrote: > > Attempting to migrate my app from 1.3 to 2.1; using xampp. I'm running > into an error in the console when I use AclExtras to recover aco ('recover > aro' produces no erro

Re: CakePHP upload gives me problems

2012-06-06 Thread Harsha M V
Why dont you use an Existing plugin instead of writing all this ? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this

Working With Vendor Files

2012-06-06 Thread Harsha M V
I am implementing Google Analytics API and using https://code.google.com/p/google-api-php-client/ as Vendors. I have built a small app in PHP where i need to do the following to have access to the Google accounts // Include Required Libraries require_once 'lib/apiClient.php'; require_once 'lib

Re: user status change

2012-06-06 Thread Harsha M V
$this->Model->saveField('columnName', $data); -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send emai

Re: Saving a long list of hasMany Through associasions

2012-05-28 Thread Rob M
It sounds like a HABTM table is precisely what you need. Please elaborate on your requirement 'cannot do HABTM due to storing meta info'. - Rob On Friday, May 25, 2012 9:09:59 PM UTC-4, Benjamin Allison wrote: > > I have two models: Users and Surveys. In my Users "index" view, each User > row ha

1.3->2.1 migration: aco problem

2012-05-27 Thread Rob M
Attempting to migrate my app from 1.3 to 2.1; using xampp. I'm running into an error in the console when I use AclExtras to recover aco ('recover aro' produces no error). The same error is encountered when attempting 'aco_sync'. Would you perhaps recognize the stack trace and suggest where to l

Re: Headers already sent using DOMPDF in view

2012-05-18 Thread Josh M
On May 18, 2:28 pm, AD7six wrote: > On Friday, 18 May 2012 18:09:35 UTC+2, Josh M wrote: > > > Hello all, > > >      I am having issues using the DOMPDF pdf generation library in my > > Cake 2.1 application.  I am building an inventory management > > applicati

Headers already sent using DOMPDF in view

2012-05-18 Thread Josh M
Hello all, I am having issues using the DOMPDF pdf generation library in my Cake 2.1 application. I am building an inventory management application for use at my company and I am trying to dynamically generate pdfs my users can print as stock labels. However, when I attempt to stream to pdf

Re: $this->redirect not working

2012-03-10 Thread George M. Behr
Without the redirect Cake should take you back to the 'instructions' view. Have you tried removing the redirect line to see what happens (assuming the instructions action you have here is in the instructions controller)? George On Sat, Mar 10, 2012 at 8:54 PM, Brian Bowler wrote: > So I have th

Re: campo id

2012-01-05 Thread Laerte M. Rodrigues
se a tabela possui chave primaria no modelo declare var $primary = "nomeCampo"; assim, será a chave primária, caso seja composta, utilize array var $primary = array("Campo1","Campo2"); Em 5 de janeiro de 2012 16:14, Filippi Rizzi escreveu: > Olá! Trabalho com o cake a alguns anos, e sempre u

Re: Having PHP generate a PDF

2012-01-03 Thread Laerte M. Rodrigues
use jaspter reports with PHP to generate document files 2012/1/3 euromark > @roundrightfarm > I dont think such a helper is part of the core, though :) > > > On 3 Jan., 17:25, "Yves S. Garret" wrote: > > That sounds interesting, but will it work with my requirement of having > the > > header an

Re: How access to $this->webroot controller's variable from a model?

2012-01-02 Thread Laerte M. Rodrigues
if they have the absolute path, use const WEBROOT_DIR 2012/1/2 Tilen Majerle > he is probably need absolute path for webroot, not browser :) > -- > Lep pozdrav, Tilen Majerle > http://majerle.eu > > > > 2012/1/2 Laerte M. Rodrigues > >> I use Cakephp 2.0

Re: How access to $this->webroot controller's variable from a model?

2012-01-02 Thread Laerte M. Rodrigues
I use Cakephp 2.0 and the static method Helper::url('/') return the URL from WebRoot 2012/1/2 清水紘己 > >Laerte M. Rodrigues > You meant Router::url(), right? > > It will return proper value through web, but not in cli at edge cases. > Recommended way is manually t

Re: How access to $this->webroot controller's variable from a model?

2012-01-02 Thread Laerte M. Rodrigues
use Helper::url('/') 2012/1/2 byqsri > Hi > I would ask how can I access to "$this->webroot" controller's variable > from a model? > Many Thanks > Marco > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://a

Re: CAKE PHP Installation Problem

2012-01-01 Thread Laerte M. Rodrigues
verify if the rewrite_module is enabled in your apache server 2012/1/1 Wanted > Believe me I have done Everything according to the tutorialsin > my case its http://localhost/cakephp1.3/ > > and Everything is green in the end > > but when I goto http://localhost/cakephp1.3/posts it

Re: CakePHP 2.X

2011-12-21 Thread M Kaufman (Gmail)
What about one with a 42u rack in his random location without Internet, operating quite securely, and avoiding theft or notice? Sent from my iPhone On Dec 21, 2011, at 4:50 PM, euromark wrote: > a (web)programmer that doesnt have internet? :) > > > On 21 Dez., 23:56, Ucha19871 wrote: >> ooh

Re: Has many problem

2011-11-30 Thread Hugo M
Hugo Massaroli 2011/11/30 phpMagpie > Option 2 does not look normalized to me as data1, data2, data3 should be > in an associated table Process hasMany Data <-> Data belongsTo Process. > It's normalized because data1, data2 and data3 are always the same fields, they don't change with the proce

Re: Has many problem

2011-11-29 Thread Hugo M
Ah... an another question, what will happen if I add a new process, will always need to have a bigger index than the previous processes right? There's a way to have an better identifier in the fields with a hasMany? Something like: echo $this->Form->input("Process..cost_type"); echo $this->Form->

Has many problem

2011-11-29 Thread Hugo M
Hi all! I have a problem and I'm not sure about the a solution. I have two options of creating a "process" table. Option 1: table with 100 or more fields. Ugly, I don't want this. Fields: process1_costtype1_data1 process1_costtype1_data2 process1_costtype1_data3 process1_costtype2_data1 ..etc.

Re: Which is the better IDE for cakePHP?

2011-09-26 Thread Hugo M
NetBeans is nice. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googl

Re: Disable loggin, nice way?

2011-09-22 Thread Hugo M
Because my debug log file in 1 day grows to 96 MB of data :P (in a test environment!), and it will probably slow the site's performance. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help o

Disable loggin, nice way?

2011-09-21 Thread Hugo M
I tried to disable debug.log and error.log logging but I couldn't. I've tried putting debug in 0 and log in 0 in core.php but that didn't work. I've tried this: class CakeLog { /** * Writes given message to a log file in the logs directory. * * @param string $type Type of log, becomes part of t

Re: Login to a CakePHP application from another site doesn't work

2011-09-17 Thread Filipinho M. dos Santos
Try to change the security level, I think cakephp block acess from other domains, depending the level of security. 2011/9/16 WebbedIT > There is a reason they are slightly more involved and in your eyes > excessive, because they ensure a level of security! > > You should never accept POST data w

amchart + CakePHP Xml Serialize

2011-09-06 Thread Hugo M
Hi, I'm using amchart to make graphics, I need to generate an XML like this: -0.307 -0.168 -0.073 -0.027 -0.251 But: $parsed = array( 'chart'=>array( 'graphs'=>array( array( 'graph'=>array(

Scaffolding?

2011-07-15 Thread Hugo M
Can I bake a Model, Controller and View in the same command? It would be wonderful :D Regards! Hugo -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related q

Re: Cuploadify

2011-06-12 Thread M. Meiboom
Indeed. Since the Uploadify script uses different headers, CakePHP wont recognize the session of the user! You can sent along the session id as parameter and then in your controller beforeFilter check for uploadify and session_id to restore the usersession if applicable. See: http://cakephp.19694

Re: Cron job permission denied on vodahost

2011-03-28 Thread Hugo M
cake file has executable permissions? The path is correct? How did you set up your cron, with crontab -e? 2011/3/28 Cakenya > I hosted a cakePHP site on vodahost that I want a cron job to be > sending my customers emails. > Below is my cron: > /home/aaorwbwc/public_html/tumasenti/cake/console/ca

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-02 Thread Hugo M
I don't have experience with high traffic applications, but I've used CakePHP and it has alot of cache options you can use. You just have to know how to use it. 2011/2/2 100rk > > In several places I read that CakePHP is not suitable for these > > purposes. > > Links, please. Do not expect speed

Re: How can i hide the cakephp .ctp extension

2011-01-27 Thread balaji m
hi i am new to cakephp . how can i install it and work it . i use uniserver as a webserver in local. please tell to me -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask

Re: Time Helper

2010-12-09 Thread Hugo M
$time->niceShort(parameters); and $this->Time->niceShort(parameters); are the same. $this->HelperName was implemented because the conflicts with possibly local "time" variables you may have created. 2010/12/9 Ryan Schmidt > > On Dec 9, 2010, at 14:23, cake-learner wrote: > > > $time->niceSho

Re: Internacionalization NOT working?

2010-12-08 Thread Hugo M
"Plural-Forms: nplurals=2; plural=(n != 1);\n" That line in the .po file fix the plural problem with po edit 2010/12/8 Hugo M > Ok cache seems to have gone now, and now I can start again. The only thing > I want is translate the Time Helper strings. Should I run i18n bake ta

Re: Internacionalization NOT working?

2010-12-08 Thread Hugo M
file from mi pot file). 2010/12/8 Hugo M > WTF is going on? There is a Cache for translations? I don't know how but I > was able to translate "week" to "semana", but now I tried to change "semana" > to something different "semanadsgfdg" an

Re: Internacionalization NOT working?

2010-12-08 Thread Hugo M
l translating "week" to "semana". Im.. scared? 2010/12/6 Hugo M > Not working. When I go to i18n.php // method translate: > > debug($_this): > > I get: > > I18n Object > ( > [l10n] => L10n Object > ( > [language] => En

Re: Internacionalization NOT working?

2010-12-06 Thread Hugo M
Not working. When I go to i18n.php // method translate: debug($_this): I get: I18n Object ( [l10n] => L10n Object ( [language] => English (United States) [languagePath] => Array ( [0] => eng ) [l

Re: Internacionalization NOT working?

2010-12-06 Thread Hugo M
I couldn't solve this problem, any help will be appreciated :S 2010/12/4 Hugo M > I have in locale/esp/LC_MESSAGES/default.po: > > msgid "on %s" > msgstr "el %s" > > msgid "%s ago" > msgstr "hace %s" > > msgid &qu

Internacionalization NOT working?

2010-12-04 Thread Hugo M
I have in locale/esp/LC_MESSAGES/default.po: msgid "on %s" msgstr "el %s" msgid "%s ago" msgstr "hace %s" msgid "Yesterday, %s" msgstr "Ayer, %s" msgid "Today, %s" msgstr "Hoy %s" msgid "week" msgid_plural "weeks" msgstr[0] "semana" msgstr[1] "semanas" In app_controller before_filter I ha

Integrating with MongoDB

2010-11-17 Thread Hugo M
Hi! I need to have a offer model that has comments. How can I do that definition? Because comments would be an array, and I don't see the array type in the plugin samples ( Yasushi Ichikaway plugin) Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP rela

Re: MongoDB & Auth Component

2010-11-17 Thread Hugo M
Lol, nothing to do with MongoDB, I had $this->Auth->authorize = 'controller' in mi AppController. 2010/11/17 Hugo M > Hi! I'm using this MongoDB plugin: > https://github.com/ichikaway/cakephp-mongodb > > I have a problem with Auth Component. I can login, but I

MongoDB & Auth Component

2010-11-17 Thread Hugo M
Hi! I'm using this MongoDB plugin: https://github.com/ichikaway/cakephp-mongodb I have a problem with Auth Component. I can login, but I can't access to the pages that are not listed in $this->Auth->allow() function. But I'm logged in! Maybe this has something to do with the fact that MongoDB uses

Re: want to use database store procedure with cakephp

2010-10-01 Thread Filipinho M. dos Santos
I think that you can just call de sp , something like this $this->query("call sp_YourStoredProcedure") 2010/10/1 Ma'moon > I really think that the core developers should include this feature in > CakePHP 2.0 since this is getting into a big demand all over the frameworks > users, for example Yii

Re: Automatically save timestamp fields

2010-10-01 Thread Hugo M
thin a form field are > automatically converted to select dropdowns and converted back into a > timestamp before saving. > > On Oct 1, 8:55 am, "j.blotus" wrote: > > just put it in your beforeSave function and it will do whatever you > > need > > > > On Oct

Re: Automatically save timestamp fields

2010-10-01 Thread Hugo M
7;; > > in the beforeSave() of the model: > >/** > * Before saving set up created and modified so we know when record > was changed > * > * @return boolean true always > */ >function beforeSave() { >// Alternate colu

Re: Automatically save timestamp fields

2010-10-01 Thread Hugo M
already get populated with 'now'? > > Jeremy Burns > *Class Outfit* > * > * > jeremybu...@classoutfit.com > http://www.classoutfit.com > > On 1 Oct 2010, at 15:36, Hugo M wrote: > > There's a way to save timestamp field without manually joining the hour,

Automatically save timestamp fields

2010-10-01 Thread Hugo M
There's a way to save timestamp field without manually joining the hour, day, year, etc. fields? $this->Form->input('timestampfield'); When I do that, in backend I get: [timestampfield] => Array ( [month] => 10 [day] => 01

Re: Facebook & Session Component

2010-09-30 Thread Hugo M
The solution: security level in low. But I don't really understand what is happening down there :p. 2010/9/30 Hugo M > Basically, I'm loosing my CakePHP session after using Facebook's > multifriend selector... any ideas? :S Is this something related with Cake > securit

Re: Facebook & Session Component

2010-09-30 Thread Hugo M
Basically, I'm loosing my CakePHP session after using Facebook's multifriend selector... any ideas? :S Is this something related with Cake security?? 2010/9/30 Hugo M > Hi! I'm making a FB Connect site. I have a multi-friend selector. When i > send invitations, the user is

Facebook & Session Component

2010-09-30 Thread Hugo M
Hi! I'm making a FB Connect site. I have a multi-friend selector. When i send invitations, the user is sent to root. Root is albums/index (because there are picture cards albums). Because the application could have only one album, when I just have one album I sent the user straight to that album.

JsHelper - Quotes issues

2010-09-13 Thread Daniel M. Ivasse
Hi I have two issues on JsHelper. Could someone help me, please? 1) The key "data" in $options parameter of "request" function outputs a javascript code between quotes. So when I use something like data => $js->get("#myForm")-> serializeForm() it doesn't work. In "submit" function the data parame

Re: Datasource

2010-09-02 Thread Hugo M
Is not a bad idea. But, there isn't a way to get the database connection from cake and handle db pointers? Anyway, that is just curiosity, your solution seems to be right for me :), thanks! 2010/9/2 Jon Bennett > > Hi! I want to handle database pointers because I have a big database and > > memo

Datasource

2010-09-02 Thread Hugo M
Hi! I want to handle database pointers because I have a big database and memory is not enough (I already added memory in php.ini and put recursive in -1), I have like 9000 registers and I want to write all that registers in a file. There's a way to do something like mysql_fetch_array with datasour

using javascript helper on 404

2010-08-25 Thread M
javascript helper is used in default.ctp. when "Missing Controller", javascript is not loaded. i thought pages controller is reading 404.ctp so i copied it from cake/lib to app/ controller and added Javascript helper but it didn't work. i turned on debug 2 and found the values passed to view from

Re: Problem loading intermediate model

2010-08-25 Thread Hugo M
of this models (StepsUser, Question, Step) has access to QuestionsUser table. In app controller: var $uses = array('User'); User has access to QuestionsUser table (User has many Questions), I think QuestionsUser object is instanciated when User model is loaded, changing de order somehow sol

Re: Problem loading intermediate model

2010-08-25 Thread Hugo M
Hi!, this is the file: app/models/questions_user.php 2010/8/24 Sam > rename questions_users.php to questions_user.php. > > On Aug 24, 2:28 pm, "j.blotus" wrote: > > please dump the contents of your model file, and the name of the file > > for us > >

Re: Problem loading intermediate model

2010-08-24 Thread Hugo M
lotus > Do you get a missing table error? > > Often these errors can be caused by incorrect file naming or class > naming. > > On Aug 24, 12:03 pm, Hugo M wrote: > > I have a model QuestionsUser that has some relationships (belongsTo user, > > question and answer). Th

  1   2   3   >