CAKEPHP Call Store procedure

2013-12-02 Thread Jorge Mariano Paz Flores
Hi does anyone knows how to execute a store procedure, all I get is empty result here is my code... in my model.. public function procedure() { $result = $this->query("CALL ReporteEjesLineas(2013,1);"); return $result; } in my controller public function admin_reportebarras($anio = null

Re: Which version is good and stable for development among 2.3.0 Rc2 and 2.2.5

2013-01-25 Thread Mariano C.
I will not set up a production environment with a release candidate, even if it is at the second step (then really near to a stable)! Il giorno venerdì 25 gennaio 2013 05:32:33 UTC+1, anjith ha scritto: > > Hi, > > New to cakephp. Just about to start development of new project using > cakephp.

Parse XML string as PHP Array

2013-01-24 Thread Mariano C.
I'm creating a RESTful webservice, right now I'm facing the insertion of the new resource (the Seasonresource). This is the body of the POST request: new title and this is the controller that effectively perform the insertion: public function add() { // i feel shame for thi

Format my XML output in CakePHP

2013-01-23 Thread Mariano C.
I have the players table with three field id, first_name, last_name. The PlayersController have method index that show every player in the table: public function index() { $output = $this->Player->find('all'); $this->set(array( 'output' => $output, '_seria

Creation and deletion of resource through a RESTful API call

2013-01-19 Thread Mariano C.
I have a database table called seasons: CREATE TABLE IF NOT EXISTS `seasons` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(250) NOT NULL COMMENT `year` year(4) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `title` (`title`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1

Re: SQL query rather than CakePHP style query

2012-08-31 Thread Mariano C.
My method is something like public function getSomething($id) $sql = "SELECT ... WHERE id =".$id; return $this->Model->query($sql); } How should I use your tips? Il giorno venerdì 31 agosto 2012 05:11:34 UTC+2, Dr. Tarique Sani ha scritto: > > Using prepared statements via the fetchAll m

SQL query rather than CakePHP style query

2012-08-30 Thread Mariano C.
I have a really complex query, so much table (and... so much nested model). I feel more comfortable, using raw SQL query rather than cakePHP query syntax. As far as I know, I should prefear cake syntax, cause it is almost immune to attack. There's a way to join the security of cake approach w

Re: Passing arguments to a Pages

2012-08-27 Thread Mariano C.
I have just one "problem". I used Page, cause I need no action, matter of fact, i'm using default action (i.e. display) I should ovverride the default display() and change on my need. It's possible? How could change it. Il giorno lunedì 27 agosto 2012 20:18:04 UTC+2, cricket ha scritto: > > And

Passing arguments to a Pages

2012-08-26 Thread Mariano C.
I've a page (i.e. under Pages directory) called dettaglio_regione.ctp. I want to set URLs like http://.../clienti/[[regione]], so a working URL should be something like http://.../clienti/Campania or http://.../clienti/Sicilia and so on. I need to grab the content of [[regione]]. How I've to set

Fine tuning of json formatting

2012-08-05 Thread Mariano C.
I have this model: public function getPeopleByName($name){ > $this->unbindModel(array('hasMany' => array('OfficePersonTask'))); > > $options['fields'] = array("Person.id", "Person.full_name"); > $options['conditions'] = array("UPPER(CONCAT(Person.last_name, '

Re: Choose what field show when depth level is 2

2012-08-04 Thread Mariano C.
emove comment from conditions row all that I get is: > { > "Offices": [ > { > "Person": { > "id": "5", > "full_name": "John Doe" >

Rename field name without change the hierarchy

2012-08-02 Thread Mariano C.
I have this function write in a CakePHP model: public function getPeopleByName($name){ > $this->unbindModel(array('hasMany' => > array('OfficePersonTask'))); > > $options['fields'] = array("Person.id", > "CONCAT(Person.first_name, ' ', Person.last_name) A

Choose what field show when depth level is 2

2012-07-31 Thread Mariano C.
In CakePHP 2.1 I have prepared a Json webservice. This is an excerpt of what I get: { >Offices:[ > { > Office:{ > id:"1", > Company:{ >id:"1", >name:"ABC Software" > } >

control visibility of field with second level of depth

2012-07-30 Thread Mariano C.
I have this json: { - Offices: [ - { - Office: { - *address*: "JR street" - Company: - { - id: "3", - name: "ABC Software" }, }, - Person:

Re: Design reusable CakePHP application

2012-07-30 Thread Mariano C.
d > http://book.cakephp.org/2.0/en/views/json-and-xml-views.html > > The consumer applications are developed 100% independent of the > original CakePHP websevice providing app > > Tarique > > On Mon, Jul 30, 2012 at 5:40 PM, Mariano C. > wrote: > > One of th

Design reusable CakePHP application

2012-07-30 Thread Mariano C.
One of the rules for reusable code is: Develop your application like webservice. So I don't want to strictly bind controller with view. My idea is: - controllers just returns json info (just like a webservice does), - views calls that webservices, get the json and make html output.

Re: [2.1] Problem with webservices

2012-07-29 Thread Mariano C.
t; >> >> ========= >> *Walter Raponi* >> Din S.r.l. >> Via Donato Menichella 304 >> 00156 Roma - Italy >> >> Tel 0641227662 >> Fax 0641227664 >> w.rap...@ritoll.it >> >> Il giorno 29/lug/2012, alle ore 19:01,

Re: [2.1] Problem with webservices

2012-07-29 Thread Mariano C.
Yes I've read that message, but I don't understand what it means. Why I get that error only in json and xml output and not in a normal view? Il giorno domenica 29 luglio 2012 18:35:37 UTC+2, rchavik ha scritto: > > > > On Sunday, July 29, 2012 10:35:23 PM U

Re: [2.1] Problem with webservices

2012-07-29 Thread Mariano C.
Yes. I've read. But what cause that errror? What that error really means? Il giorno domenica 29 luglio 2012 18:35:37 UTC+2, rchavik ha scritto: > > > > On Sunday, July 29, 2012 10:35:23 PM UTC+7, Mariano C. wrote: >> >> Nothing change, I got the same error. :( &

Re: [2.1] Problem with webservices

2012-07-29 Thread Mariano C.
Nothing change, I got the same error. :( Il giorno domenica 29 luglio 2012 16:49:36 UTC+2, Mariano C. ha scritto: > > I'm try to develop a simple webservices in CakePHP 2.1. So, i first > created a DB table: > > CREATE TABLE IF NOT EXISTS `people` ( >> `id`

[2.1] Problem with webservices

2012-07-29 Thread Mariano C.
I'm try to develop a simple webservices in CakePHP 2.1. So, i first created a DB table: CREATE TABLE IF NOT EXISTS `people` ( > `id` char(36) COLLATE utf8_bin NOT NULL, > `first_name` varchar(100) COLLATE utf8_bin DEFAULT NULL, > `last_name` varchar(100) COLLATE utf8_bin NOT

Re: strange behavior when action is Auth->allow(ed)

2011-05-06 Thread Mariano C.
On 6 Mag, 08:19, Ryan Schmidt wrote: > On May 5, 2011, at 15:16, Mariano C. wrote: > > > function beforeFilter() > > { > >        parent::beforeFilter(); > >        $this->Auth->allow(array('showTables')); > > } > > > When i callhttp:/

Re: Two in one: Accented letters and partially active debug

2011-05-06 Thread Mariano C.
our database tables' encoding to UTF-8, but you'll have to take special care > to convert the encoding of all your existing data properly without messing it > up (unless your existing data is only test data in which case just truncate > it and make new test data). > >

strange behavior when action is Auth->allow(ed)

2011-05-05 Thread Mariano C.
I've followed your guide to auth: http://book.cakephp.org/view/1250/Authentication This is my app_controller.php: class AppController extends Controller { var $components = array('DebugKit.Toolbar', 'Session', 'Auth'); var $helpers = array('Html','Javascript', 'Session', 'Ajax', 'Faceboo

Re: Two in one: Accented letters and partially active debug

2011-05-05 Thread Mariano C.
, Ryan Schmidt wrote: > > > On May 4, 2011, at 16:55, Mariano C. wrote: > > > > 1) when I insert data inside DB through a form, it will be stored as: > > > "This letters è is è and this l’ is an apostrophe " > > > > If I try to edit this text t

Two in one: Accented letters and partially active debug

2011-05-04 Thread Mariano C.
1) when I insert data inside DB through a form, it will be stored as: "This letters è is è and this l’ is an apostrophe " If I try to edit this text trough proper editing form, all of this strange characters will be represented in right way as: è and '. What can I do to proper echo the text eve

Re: Auth Problem Again..

2011-04-15 Thread Mariano Iglesias
> > Anyway if you get the flash messages, it should be consumed by the login > > action. Meaning that if you enter wrong credentials, and thus the login > > message shows again, then the $this->Session->flash('auth') line should > > consume the message. > > I would guess (that recipe isn't in my RA

Re: Auth Problem Again..

2011-04-14 Thread Mariano Iglesias
That is correct, the $this->Session->flash('auth'); message is not part of the layout because I relayed on people following: http://book.cakephp.org/view/1252/Displaying-Auth-Error-Messages I should've added an Information Box to clear it out :( Anyway if you get the flash messages, it should b

Re: Auth Problem Again..

2011-04-14 Thread Mariano Iglesias
What are you talking about here? "By default you would not go through the login action before Auth will do, so your code is useless" Did you read the recipe? If so, you'll learn that the intention is to handle the login *AFTER* the Auth component processed and found no valid credentials, thus DE

CakePHP and foreign key

2011-04-11 Thread Mariano C.
My DB server doesn't support innodb engine, so I can't use Foreign key costraint. How can I assure referential intergrity? Can I do this using cakephp, how? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.ca

Re: Strange error passing from windows to linux

2011-04-10 Thread Mariano C.
y ( [type] => datetime [null] => [default] => [length] => ) ) On 9 Apr, 19:37, cricket wrote: > On Sat, Apr 9, 2011 at 5:40 AM, Mariano C. wrote: > > Wherever I put this debug($this->MyModel::schema()) i get: > >

Re: Strange error passing from windows to linux

2011-04-09 Thread Mariano C.
Wherever I put this debug($this->MyModel::schema()) i get: T_PAAMAYIM_NEKUDOTAYIM php error :( On 8 Apr, 21:23, cricket wrote: > On Fri, Apr 8, 2011 at 2:28 PM, Mariano C. wrote: > > I suppose, I've just made a dump > > What is the primary key for the model? Is it id? The

Re: Strange error passing from windows to linux

2011-04-08 Thread Mariano C.
I suppose, I've just made a dump On 8 Apr, 19:40, cricket wrote: > On Fri, Apr 8, 2011 at 4:11 AM, Mariano C. wrote: > > Disparity among DB' structure and? > > Are the databases identical? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakep

Re: Strange error passing from windows to linux

2011-04-08 Thread Mariano C.
Disparity among DB' structure and? On 8 Apr, 03:25, cricket wrote: > On Thu, Apr 7, 2011 at 4:47 PM, Mariano C. wrote: > > I starting developing my app on windows on Apache/MySQL/PHP > > environment, today i've copied my htdocs directory returned on my > > ubun

Strange error passing from windows to linux

2011-04-07 Thread Mariano C.
I starting developing my app on windows on Apache/MySQL/PHP environment, today i've copied my htdocs directory returned on my ubuntu, again under AMP environment (and paste my htdocs). Every things work quite good, but sometimes I have error like: Notice(8) Undefined index: id [CORE/cake/libs/mode

Re: Security component and HTTP Basic Authentication

2011-04-06 Thread Mariano C.
I don't need a complete mechanism of authentication. I just want to protect every action with http basic and leave just one action unprotected. As soon add Auth component I should create users table and so on, and I would avoid this. On 6 Apr, 10:01, "Mariano C." wrote: > S

Re: Security component and HTTP Basic Authentication

2011-04-06 Thread Mariano C.
hese are set in the controller itself so you could specify just the 1 > allowed action for that controller. > > K > > > > > > > > -Original Message- > From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf > > Of Mariano C. &g

Security component and HTTP Basic Authentication

2011-04-06 Thread Mariano C.
I've read this article http://book.cakephp.org/view/1309/Basic-HTTP-Authentication Now I've a lot of controller with many actions to protect, so I could consider the idea to insert that beforeFilter directly inside AppController (and not in the single controller), so every action will be protecte

delete a join record

2011-03-31 Thread Mariano C.
I have two models: Team and Season, these are binded by Membership model. As explained in book, i've designed it as: Team and Season hasMany Membership Membership belongsTo Season and Team If I want create a membership row: function add($season_id, $team_id) { if(($this->Season->e

extends autoComplete - Need ID of chosen element and set it inside hidden field

2011-03-26 Thread Mariano C.
I followed http://book.cakephp.org/view/632/autoComplete, and this work. Now the problem is: I choose an element from suggested items, but actually I haven't ID so this isn't so usefull. It could be better if as soon I choose an element, it's id will be stored immediatly inside an hidden input, so

Re: force a redirect even if destination's page is equal to source's page

2011-03-25 Thread Mariano C.
> > i bet thats your problem > if(false) is always false!!! the code inside will never be executed > > On 25 Mrz., 13:46, Stephen wrote: > > > > > > > > > set 'value' => '' in your inputs on add. > > > On 25 March 2011 12:43,

Re: force a redirect even if destination's page is equal to source's page

2011-03-25 Thread Mariano C.
Nothin change. On 25 Mar, 13:08, Stephen wrote: > unset $this->data ? > > On 25 March 2011 11:18, Mariano C. wrote: > > > > > > > > > > > I have a form inside add.ctp view: > > echo $form->create('...'); > > // ... > >

force a redirect even if destination's page is equal to source's page

2011-03-25 Thread Mariano C.
I have a form inside add.ctp view: echo $form->create('...'); // ... echo $form->submit('Save and back', array('name'=>'saveAndBack')); echo $form->submit('Salva and add new', array('name'=>'saveAndAddAgain')); echo $form->end(); Now, add function inside controller is something like: // grab butto

Re: Where should I insert this before filter? AppController or AppModel?

2011-03-24 Thread Mariano C.
eason->getLastSeasonId(); Why? On 24 Mar, 22:23, cricket wrote: > On Thu, Mar 24, 2011 at 4:11 PM, Mariano C. > wrote: > > I have this code, I need (for every page) to read a session, if > > doesn't exist read from a model and then write the session, something > &

Where should I insert this before filter? AppController or AppModel?

2011-03-24 Thread Mariano C.
I have this code, I need (for every page) to read a session, if doesn't exist read from a model and then write the session, something like: == function beforeFilter() { // read session variable $id = $this->Session->read('editable_season_id'); // id

Re: what naming convention for three-way joining table?

2011-03-19 Thread Mariano C.
i've found what I need: http://book.cakephp.org/view/1046/Multiple-relations-to-the-same-model On 19 Mar, 17:27, AD7six wrote: > On Mar 19, 4:52 pm, "Mariano C." wrote: > > > I'm developing a project about little soccer league. I need to store > > teams, t

what naming convention for three-way joining table?

2011-03-19 Thread Mariano C.
I'm developing a project about little soccer league. I need to store teams, team's players, matches info (which are two teams involved in the match), events (various events happened douring a single match - goal, penalty, red card, yellow card etc etc-) This is the DB realized (only PK and FK are

Cake PHP to improve Joomla

2011-03-17 Thread Mariano C.
I need to develop some joomla component, I haven't time to learn joomla's MVC approch so I would use cakephp to develop this component. I've seen around there is a lot of way to do this. One of best way is to use cake itself as component as suggested here: http://www.gigapromoters.com/blog/2007/02/

Why unbind directive doesn't works on read function?

2010-12-11 Thread Mariano C.
I have two function getBasicInfo read specific book's information through $book_id then pass the record readed to increaseOwners that should upgrade owners field of recordset passed. This works pretty good, but $this-unbindModel(array('hasMany' => array('BooksUser'))); $this->id =

DB field i18n - where I wrong?

2010-11-18 Thread Mariano C.
I have a table called supports, with two fields: id and name. 1 single_s 2 double_s ... Support model is: array('name')); function getAll() { $this->unbindModel(array('hasMany' => array('BooksUser'))); $options = array (

i18n - __() function and variable content

2010-11-14 Thread Mariano C.
I have a code like: echo "Add as ".$content; I have to internationzalize this snippet of code, i need to put in i18n process even the $content variable, how can I do that? Best Regards Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questi

How to get user's country and language with cakePHP

2010-11-14 Thread Mariano C.
Is there a way (helpers, components) to obtain with Cake PHP the user's country and associated language for that country? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the G

Re: Mistaken render when debug is set to 0 (all ok if I re.set on 2)

2010-11-07 Thread Mariano C.
Number helpers was not added to helpers array. Resolved! On 7 Nov, 11:09, "Mariano C." wrote: > No statical call to debug. > This lines was the problem: > > format($top_author['readers'], > array('before' => '', 'places'

Re: Mistaken render when debug is set to 0 (all ok if I re.set on 2)

2010-11-07 Thread Mariano C.
ing works. Just a simple number format. Why this stop everything in debug=0 but it's ok in debug=1 or debug=2??? On 6 Nov, 20:13, cricket wrote: > On Sat, Nov 6, 2010 at 2:08 PM, Mariano C. wrote: > > I've always developed my application with debug set to 2, now I've

Re: Mistaken render when debug is set to 0 (all ok if I re.set on 2)

2010-11-06 Thread Mariano C.
What type of changes could cause these problem? Why only one controller? On 6 Nov, 19:11, Tilen Majerle wrote: > i'm sure, that you made changes in cake directory...here is maybe problem!! > -- > Tilen Majerlehttp://majerle.eu > > 2010/11/6 Mariano C. > > > I'

Mistaken render when debug is set to 0 (all ok if I re.set on 2)

2010-11-06 Thread Mariano C.
I've always developed my application with debug set to 2, now I've turned it to 0 and start to try it on the same machine but now all actions of a specific controller are rendered in a wrong way. Only one controller seems to gave me this error. I've tried to restart server, open/close browser, sam

Re: Send 'first' parameter to pagination function

2010-10-21 Thread Mariano C.
idea? On 20 Ott, 19:04, "Mariano C." wrote: > This gave me Book array, Author array, and an empty BooksUser array, > the rest of array is not returned > > On 20 Ott, 18:45, Fran Iglesias wrote: > > > $this->paginate['Book'][0] = 'first'; &

Re: Send 'first' parameter to pagination function

2010-10-20 Thread Mariano C.
This gave me Book array, Author array, and an empty BooksUser array, the rest of array is not returned On 20 Ott, 18:45, Fran Iglesias wrote: > $this->paginate['Book'][0] = 'first'; > > should do the trick... > > El 20/10/2010, a las 18:43, Mariano C. escrib

Send 'first' parameter to pagination function

2010-10-20 Thread Mariano C.
I have five tables: users, books, books_users, authors and types. users, authors and types just have PK field called id. books have PK called id and FK called author_id (ref. Authors) books_users have PK called id and 3 FKs user_id, book_id, type_id (respectively Ref. users, books, types). I have

Model association, I've made it correctly???

2010-10-17 Thread Mariano C.
I'm studing model associations, I would know if i've understand it correctly: I have five tables: users, books, books_users, authors and types. users, authors and types just have PK field called id. books have PK called id and FK called author_id (ref. Authors) books_users have PK called id and 3

Re: unbind USER model inside the USER controller

2010-10-04 Thread Mariano C.
data: ", in this way (with find) I get all data in one time, but i need it paginated, what I've to do after find? On 3 Ott, 22:48, cricket wrote: > On Sun, Oct 3, 2010 at 4:31 PM, Mariano C. wrote: > > How can I rewrite my function to do things like u suggested??? > > &g

Re: unbind USER model inside the USER controller

2010-10-03 Thread Mariano C.
How can I rewrite my function to do things like u suggested??? On 2 Ott, 21:53, "Mariano C." wrote: > my function that paginate is something like > > function ... paging() > { >    $this->paginate = array(.); >    $books = $this->paginate('Book

Re: unbind USER model inside the USER controller

2010-10-02 Thread Mariano C.
icket wrote: > On Sat, Oct 2, 2010 at 1:27 PM, Mariano C. wrote: > > Then, I have a User model and a Book Model I bind it as: > > User HABTM Book > > Book HABTM User > > > So I have books_users table inside my DB and CAKEPHP will > > automatically create BooksUs

unbind USER model inside the USER controller

2010-10-02 Thread Mariano C.
Then, I have a User model and a Book Model I bind it as: User HABTM Book Book HABTM User So I have books_users table inside my DB and CAKEPHP will automatically create BooksUser virtual model. Now if I want to know about a user's book collection I call method getCollection inside User controller.

I can't unbind a model

2010-10-02 Thread Mariano C.
Then I have 3 models: Album, User, AlbumsUser linked together Album has many AlbumsUser User has many AlbumsUser AlbumsUser belongs to Album, User I have a function (in User controller) that paginate all results and return me: Array ( [0] => Array ( [AlbumsUser] => Array

Re: id field as char(40) and id number is automatically created

2010-09-27 Thread Mariano C.
t; > Jeremy Burns > Class Outfit > > jeremybu...@classoutfit.comhttp://www.classoutfit.com > > On 27 Sep 2010, at 17:48, Mariano C. wrote: > > > I've a problem with my free host, I cant' create char! Can I specify > > another field type for magic id creation. A

id field as char(40) and id number is automatically created

2010-09-27 Thread Mariano C.
I've a problem with my free host, I cant' create char! Can I specify another field type for magic id creation. And if I can, where I have to explain that? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message be

Re: how to use required => true in multiple validation

2010-09-25 Thread Mariano C.
s that the field must be present in the data array, and > >> doesn't really test its value. So in your case, required => true might be > >> enough. > > >> Jeremy Burns > >> Class Outfit > > >> jeremybu...@classoutfit.comhttp://www.classoutfi

how to use required => true in multiple validation

2010-09-25 Thread Mariano C.
Reading the doc there's explained that require isn't a "pure" rule, so I'm asking how can I use it in multiple validation per field case: example: var $validate = array ( 'id' => array( 'idRule-1' => array( 'rule' => 'isUni

Re: Auth->allow component umpredictable

2010-09-24 Thread Mariano C.
); > > > // In users controller > > $this->Auth->allow('collection', 'register'); > > > On Sep 24, 11:32 am, "Mariano C." wrote: > > > > Hi, this is my app_controller > > > > class AppController extends Controller

Auth->allow component umpredictable

2010-09-24 Thread Mariano C.
Hi, this is my app_controller class AppController extends Controller { var $components = array('DebugKit.Toolbar', 'Auth', 'Session', 'Facebook.Connect'); var $helpers = array('Facebook.Facebook'); function beforeFilter() { $this->Auth->allow(array(

Tooltip with Prototype

2010-09-23 Thread Mariano C.
there's a way (helpers or just howto) to use prototype based tooltip inside my page? Everything i've found is out of date Regards Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed

User model: How to decide what field need to be a session?

2010-09-18 Thread Mariano C.
I have a table users, associated to model User and so on... When I logged in, row associated to my account info, will be automatically saved as session. There's a lot of field inside users/User that i don't need to save as session, how can I exclude it? Check out the new CakePHP Questions site htt

Re: Call a method from different controller

2010-09-17 Thread Mariano C.
I don't know if I can't move it inside the model. I make some session's check that go broke inside the model On 17 Set, 17:38, "Mike Karthauser" wrote: > On Fri, September 17, 2010 4:30 pm, Mariano C. wrote: > > I have Book's controller > >

Call a method from different controller

2010-09-17 Thread Mariano C.
I have Book's controller newAuthor('Stephen King'); // call newAuthor() } function newAuthor( $name ) {// method's logic } } ?> This work perfectly but function newAuthor() is better placed inside Author's controller. But when I put it inside Author's controller I don't know how t

Re: I can't slug the words "apple purée"

2010-09-16 Thread Mariano C.
-8 > > On Sep 15, 1:42 pm, "Mariano C." wrote: > > > I have tried the same on Mac OSX with snowleopard nothing changed. > > Ideas? > > > On 15 Set, 09:02, AD7six wrote: > > > > On Sep 15, 8:43 am, "Mariano C." wrote: &g

Re: I can't slug the words "apple purée"

2010-09-16 Thread Mariano C.
Now that I've tested that this problem is not only on centos but even on Mac OS with Apache, how can I workround this? On 15 Set, 19:42, "Mariano C." wrote: > I have tried the same on Mac OSX with snowleopard nothing changed. > Ideas? > > On 15 Set, 09:02, AD7six wrot

Re: I can't slug the words "apple purée"

2010-09-15 Thread Mariano C.
I have tried the same on Mac OSX with snowleopard nothing changed. Ideas? On 15 Set, 09:02, AD7six wrote: > On Sep 15, 8:43 am, "Mariano C." wrote: > > > > > On 14 Set, 22:10, AD7six wrote: > > > > On Sep 14, 10:09 pm, AD7six wrote: > >

Re: I can't slug the words "apple purée"

2010-09-14 Thread Mariano C.
On 14 Set, 22:10, AD7six wrote: > On Sep 14, 10:09 pm, AD7six wrote: > > > On Sep 14, 7:41 pm, "Mariano C." wrote: > > > > this post suggest to modify server setting. I'm not the server admin, > > > I can't modify it. Can I handle this by

Re: I can't slug the words "apple purée"

2010-09-14 Thread Mariano C.
this post suggest to modify server setting. I'm not the server admin, I can't modify it. Can I handle this by my hand! On 14 Set, 19:21, cricket wrote: > On Tue, Sep 14, 2010 at 1:11 PM, Mariano C. > wrote: > > and what if I'm on centos? > > I think Andy'

Re: I can't slug the words "apple purée"

2010-09-14 Thread Mariano C.
and what if I'm on centos? On 14 Set, 11:23, AD7six wrote: > On Sep 14, 11:22 am, AD7six wrote: > > > On Sep 14, 9:13 am, "Mariano C." wrote: > > > > and how can I set proper utf8 encoding? Is there a tutorial/article? > > > That's poss

Re: I can't slug the words "apple purée"

2010-09-14 Thread Mariano C.
to > > your class and adding some debug steps like print_r, print_r(__LINE__) > > etc to see exactly whats happening > > > On Sep 12, 12:18 pm, "Mariano C." wrote: > > > > inside core.php > > > > Configure::write('App.encoding', &#

Re: I can't slug the words "apple purée"

2010-09-12 Thread Mariano C.
inside core.php Configure::write('App.encoding', 'UTF-8'); I've even try with content type inside head: On 12 Set, 16:29, "j.blotus" wrote: > From the cookbook: > The slug method expects UTF-8 encoding. > > Are you using utf-8? > > On Sep

Re: I can't slug the words "apple purée"

2010-09-12 Thread Mariano C.
PPS: core.php is setted with: Configure::write('App.encoding', 'UTF-8'); but inside application the letter é is replaced by a question mark icon What i have to do? On 12 Set, 09:59, "Mariano C." wrote: > I have a list of words correctly slugged but, on word

I can't slug the words "apple purée"

2010-09-12 Thread Mariano C.
I have a list of words correctly slugged but, on word "apple purée" Inflector doesn't return me nothing. echo Inflector::slug("apple purée"); not error or warning returned but neither an output. Why??? My cake is 1.3. PS: the words "apple purée" is used as example here: http://book.cakephp.org/v

Re: tokenize remove call

2010-09-09 Thread Mariano C.
Content', 'with' => '{ token: "'.$token.'" }' ) ); CONTROLLER: Then inside remove() function: 1) Grab the token passed through "with" 2) Grab the token

tokenize remove call

2010-09-09 Thread Mariano C.
I try to explain better. I have a remove link inside my view, something like: h_ttp://myweb.com/collections/remove/12 This will remove element with id 12, and it works perfectly. If a user call this element coping and pasting it inside a browser URL field this works too, but I want that this call

Re: Utility class: where I have to put it?

2010-09-08 Thread Mariano C.
thanks to all ;) On 8 Set, 22:10, euromark wrote: > i'd do it similar > tohttp://github.com/dereuromark/tools/blob/master/libs/github_lib.php > > the key should not be IN the class, though > store it in configs and call Configure::read(Facebook.key) etc > > On 8 Sep.,

Re: Utility class: where I have to put it?

2010-09-08 Thread Mariano C.
ld create a class with that handle this connection, so when I need I can just write $fb = new FbApi(); $result = $fb->exec_api('Check out this funny article'); Obviously, API key is stored inside new class. On 8 Set, 20:05, cricket wrote: > On Wed, Sep 8, 2010 at 1:40 PM, Marian

Utility class: where I have to put it?

2010-09-08 Thread Mariano C.
I get the answers from webservice, throug curl calling. I would wrap these instruction inside a class. So I can create the handle and get the response simply calling the proper method. Where I have to put this type of class? Check out the new CakePHP Questions site http://cakeqs.org and help othe

Re: passing array as parameters of redirect function

2010-09-07 Thread Mariano C.
Suggestions? On 7 Set, 09:27, "Mariano C." wrote: > array_merge() returns me another array, so I really don't understand > how I should use it. > > On 6 Set, 18:49, "j.blotus" wrote: > > > > > array_merge() > > > On Sep 6, 12:15 p

Re: passing array as parameters of redirect function

2010-09-07 Thread Mariano C.
array_merge() returns me another array, so I really don't understand how I should use it. On 6 Set, 18:49, "j.blotus" wrote: > array_merge() > > On Sep 6, 12:15 pm, "Mariano C." wrote: > > > > > Can I resolve serializing the array()? > >

Re: passing array as parameters of redirect function

2010-09-06 Thread Mariano C.
Can I resolve serializing the array()? And if I could how should I code the things? On 6 Set, 18:12, euromark wrote: > you cannot put another array into the url array > > On 6 Sep., 17:52, "Mariano C." wrote: > > > > > This is the error (line 121 in users_contr

Re: passing array as parameters of redirect function

2010-09-06 Thread Mariano C.
r::_invoke() - CORE/cake/dispatcher.php, line 204 Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171 [main] - APP/webroot/index.php, line 83 On 6 Set, 05:37, "j.blotus" wrote: > No array to string conversion errors? What kind of E_NOTICE error are > you getting. > > On Sep

Re: passing array as parameters of redirect function

2010-09-05 Thread Mariano C.
I haven't error message, line 106 and 107 are just the line of collection() function with debug instructions. On 5 Set, 21:04, "j.blotus" wrote: > what is the specific error message you are getting. check lines 106 > and 107 of your users_controller.php > > On

passing array as parameters of redirect function

2010-09-05 Thread Mariano C.
Then I've a method called collection function collection($username = null, $page = 1, $sort = array('Artist.name', 'Album.year'), $direction = array('ASC', 'ASC') ) { debug(is_array(

ajax call, "with" for data serialization - how to handle array

2010-09-04 Thread Mariano C.
I've an ajax link like this: echo $ajax->link('remove', array( 'controller' => 'posts', 'action' => 'remove', $id ), array( 'update' => 'ajaxContent', 'with' => '{ username: "'.$user.'", page: "

Re: Ajax Pagination - rearrange pages after item deleting

2010-09-03 Thread Mariano C.
iew and then the pagiation should be > set as it is supposed to be. I do not have much experience in Ajax so > I can't really advise you better on how to make your own paginaton .. > > On Sep 2, 4:36 pm, "Mariano C." wrote: > > > > > Suppose to have 3 pag

Re: Ajax call and DOM modification

2010-09-02 Thread Mariano C.
Where can I find a turorial/article? On 2 Set, 19:40, cricket wrote: > On Thu, Sep 2, 2010 at 9:22 AM, Mariano C. wrote: > > I have a view like this, called collection.ctp > > > echo "" > >    foreach ($elements as $element): > >        echo ""

Ajax Pagination - rearrange pages after item deleting

2010-09-02 Thread Mariano C.
Suppose to have 3 page, I delete an object from page 2, so I would take the first element from page 3 and use it as last element of page 2, and so on... There's an article or tutorial to explain that? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP r

  1   2   3   4   5   6   7   8   9   >