Re: Problem on Error Handling with CAKEPHP

2008-10-29 Thread marco.rizze...@gmail.com
Is It someone that can help me? On 29 Ott, 15:25, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi > I would use the Error HAndling of CAKEPHP. > I create a my function in app_error.php > Now if I set the debug to 0 if I use this function I get always > another page (I think the error404 ) >

Ajax Form Reload

2008-12-11 Thread marco.rizze...@gmail.com
Hi I would a advice. I have a view where I have a ajax form and a list of element that I get from the property set in the form. Now I would that the form is a ajax form and then I submit the form then the view is reload exactly where the view is previously loaded. How can I do it? Many Thanks --~-

Problem on save operation

2009-01-13 Thread marco.rizze...@gmail.com
Hi I have this problem . I do a save operation on a model inside an action of my controller. If i do a read operation on the model of the ID object that I do to save later I get that the $this->data contains the data that I have read with read operation. I have made some errors or there are option

Re: Problem on save operation

2009-01-14 Thread marco.rizze...@gmail.com
what you mean. Can you post an example of that > part of your controller action? > > On Tue, Jan 13, 2009 at 6:21 AM, marco.rizze...@gmail.com > > wrote: > > > Hi > > I have this problem . > > I do a save operation on a model inside an action of my controller. > &

Re: Problem on save operation

2009-01-14 Thread marco.rizze...@gmail.com
> Try adding `var $cacheQueries = false` in your model definition. > > hth > grigri > > On Jan 14, 8:53 am, "marco.rizze...@gmail.com" > > wrote: > > I paste my code: > > > function edit($id=-1) > > { > >pr($this->data); // Original

Best practise for use XML with XSL

2009-02-03 Thread marco.rizze...@gmail.com
Hi I have Cake 1.2 installed. Now I have some xml view that I would use with some XSL. What is the best practise to do it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send e

Logging system for CAKEPHP

2009-02-10 Thread marco.rizze...@gmail.com
Hi I have a production ( debug=0 ) system with CAKEPHP. Now I must create a logging system in order to register all possible errors (PHP execution error or MySQL error etc. ) I have read some post about this but I don't understand completely how do it? For example for MySql error I can use the met

Re: Logging system for CAKEPHP

2009-02-10 Thread marco.rizze...@gmail.com
Another thing for MYSQL I would get also the "warning" how can do it? On Feb 10, 6:24 pm, "marco.rizze...@gmail.com" wrote: > Hi > I have a production ( debug=0 ) system with CAKEPHP. > Now I must create a logging system in order to register all possible >

Re: Logging system for CAKEPHP

2009-02-10 Thread marco.rizze...@gmail.com
Another thing ... not all MySql's errors are detected with the method Error inside AppModel On Feb 10, 6:24 pm, "marco.rizze...@gmail.com" wrote: > Hi > I have a production ( debug=0 ) system with CAKEPHP. > Now I must create a logging system in order to register al

Re: Logging system for CAKEPHP

2009-02-11 Thread marco.rizze...@gmail.com
I have set these options but my error.log inside app/tmp/log isn't updated if I set the debug to 0. On Feb 10, 6:55 pm, mscdex wrote: > marco.rizze...@gmail.com wrote: > > Now I must create a logging system in order to register all possible > > errors (PHP execution erro

Error on input field

2009-02-13 Thread marco.rizze...@gmail.com
Hi I have a form. Inside this form I have a field disabled but with a value. When I post form but in the form there are errors when the form is reloaded qith the errors the disabled field is empty. How can I correct this? Many Thanks --~--~-~--~~~---~--~~ You receiv

Re: Error on input field

2009-02-13 Thread marco.rizze...@gmail.com
How can I enabled readonly for this field? I would use $form->input helper function I try to set echo $form->input('name',array('readonly'=>true)); but it doesn't work On Feb 13, 4:30 pm, Marcelo Andrade wrote: > On Fri, Feb 13, 2009 at 11:28 AM, marco.ri

Re: Error on input field

2009-02-13 Thread marco.rizze...@gmail.com
. Instead if there is a validation error the operation to get the possible value of the second select aren't executed and I can't see the right values inside the second select. How can I resolve this? On Feb 13, 4:34 pm, "marco.rizze...@gmail.com" wrote: > How can I enabled reado

IE cache problem

2009-02-14 Thread marco.rizze...@gmail.com
Hi I have a page where the user can upload its photo. I save the photo always in the same location. In FF when I reload the page after the save operation I see the right photo. In IE instead i see always the old photo. I try to use disableCache() function but I can't to resolve the problem. Can so

Re: IE cache problem

2009-02-14 Thread marco.rizze...@gmail.com
If I would to avoid this thing without change always the name of file how can I do it? On Feb 14, 5:38 pm, fain182 wrote: > > Hi > > I have a page where the user can upload its photo. > > I save the photo always in the same location. > > In FF when I reload the page after the save operation I se

Hard problem on a save operation

2009-02-16 Thread marco.rizze...@gmail.com
Hi I have this situation. I use cake 1.2 stable. I have a save operation on a model. Now if I make a read operation on a model before the save operation I get that in the $this->data I have also data that come from the read operation. How can I avoid this situation? Many Thanks --~--~-~-

How avoid some filter conditions

2009-02-20 Thread marco.rizze...@gmail.com
Hi I have this situation. I have create an action in my controller where I can do search on a model (search on every field of my model). Now I have that I would that some field must be except from conditions. Is better if I do the filtering on the conditions on a method of the model or with a com

CakePHP Session and external application

2009-02-24 Thread marco.rizze...@gmail.com
Hi I have a mediawiki and a cakephp application. Now I would make that a user that is logged on my application can automatically access on wiki. So I use the API of the wiki to make login and then I set the cookie for the wiki. But then in this way I lost the cookie relative for my cakephp applic

Pagination with POST data

2009-03-05 Thread marco.rizze...@gmail.com
I have seen from manual that I can pass arguments to paginator functions with $paginator->options(array('url' => .)); Now with this I arguments pass via GET. How can I do If I would pass arguments via POST. Many Thanks --~--~-~--~~~---~--~~ You recei

Best way to organize CSS and JS

2009-03-06 Thread marco.rizze...@gmail.com
Hi I must to make a big application in CAKEPHP.(Like a multiservice platform). Before to start the develop I would ask what is the best way to organize the CSS and the javascript for a big application? Many Thanks --~--~-~--~~~---~--~~ You received this message beca

Question on MI-Base project

2009-03-11 Thread marco.rizze...@gmail.com
Hi I would use MI-Base for my application. I have a question about it 1)I have different databases (one for my application (for example a blog ) and one where there is saved the user's data (legacy application) ). How can I manage a situation like this? --~--~-~--~~~--

Error with use Upload Behaviour of MI-BASE

2009-03-11 Thread marco.rizze...@gmail.com
Hi I try to use the upload and image_upload behaviour of MI-BASE project for add field photo to user model My code is: In model var $actsAs= array( 'ImageUpload' => array( 'fileField' => 'photo', 'allowedMime' => array('image

Multiple upload field in a model with AD7six Upload Behaviour

2009-03-11 Thread marco.rizze...@gmail.com
My question is: If in a model I have many image fields and many upload field how can I set the model to permit the use of AD7six Upload Behaviour with all these fields? Many Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

MI-BASE documentation

2009-03-13 Thread marco.rizze...@gmail.com
Hi I very interesting to use the MI-BASE like the base for my projects. Is it some documentation for speed up the use of mi-base behaviours,helpers, components etc.? Many thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Localization with multiple file

2009-03-14 Thread marco.rizze...@gmail.com
Hi Perhaps thi is a banal question I would have more than one for the localization (one for validation message,one for name of fields etc...). I try to use in locale multiple files over default.po but I get no good results. How I can do this? Must I configure cake in some way? Thanks --~--~---

Ajax reload of an element.

2009-03-15 Thread marco.rizze...@gmail.com
Hi I have a page where I have an element (with params) that is a list of items. Now I would that when user click on a certain button the element is reload . I would make this with ajax. How can I do the ajax reload of an element? Many thanks --~--~-~--~~~---~--~~ Y

simpleSAML and CAKEPHP

2009-03-17 Thread marco.rizze...@gmail.com
Is it someone that use simpleSAML with CAKEPHP? I have some questions about it --~--~-~--~~~---~--~~ 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 unsubsc

CAkePHP and an external application

2009-03-18 Thread marco.rizze...@gmail.com
Hi I have this partocoular situation. I have a CAKEPHP application in a certainly virtual host of my server In another virtual host I have a normal php application. Now in this application I have the need to access to the CAKEPHP session of first application. Is it possible to do a thing like th

Sharing CAKEPHP Session with external app on a different virtual host

2009-03-19 Thread marco.rizze...@gmail.com
My question is this? How can I sharing CAKEPHP Session with external app on a different virtual host? Many Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to c

Memcache and CakePHP Session

2009-03-25 Thread marco.rizze...@gmail.com
Hi I would use Memcache to save the php session. I have installed memcached on my system and I have configured it. I have set in php.ini the session's handler to memcache . I try to use a session in a simple php script and all works fine. But when I try to use the session in CakePHP the session d

Exists a solution for use session.security high and ajax?

2009-04-06 Thread marco.rizze...@gmail.com
Hi I have a web application where I would use session.security at higt level but it uses ajax call. Is it possible to have both things working togheter? Marco --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP"

Prohibit saving of some fields

2009-04-08 Thread marco.rizze...@gmail.com
Hi I would prohibit saving of some fields that in my edit action in a controller . I try with $this->Security->disabledFields = array('.); but it doesn't work. I have seen that I can set in save method which fields save but I have many fields so if i can set which field not save it's better fo

CakeSession error with memcache

2009-04-14 Thread marco.rizze...@gmail.com
Hi I try to use memcache for save sessions in a CakePHP application. I install memcache,all works fine also the php sessions. Now in my CakePHP application I set in core.php this: Configure::write('Session.save', 'php'); Now I try to use the Session component in my application but I get

Using error message like ALT of an image

2009-04-20 Thread marco.rizze...@gmail.com
I would use the error message form a data validation like ALT of an image but I can't to understand ho can I do it? Has somebody a idea to o it? Many Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" gr

Exists a Ticket System made in CakePHP

2009-04-21 Thread marco.rizze...@gmail.com
I have my web application in Cakephp. It has his registered users . Now I would add a ticket system on my application only for registered users. I have searched a ticket system made in Cakephp but I haven't found anything. Is there someone that has found something made in Cakephp? Thanks --~--~---

Architectural question on integration of external application in CakePHP

2009-04-23 Thread marco.rizze...@gmail.com
Hi I have my application in CakePHP. My application only manages users and services. More precisely I have some registered users and I have some services. With CakePHP I manage which users can access certain services and which can not. For the moment all services are made in cakephp so the managem

Enter directly into the web application via SMS

2010-10-19 Thread marco.rizze...@gmail.com
Hi I have a particular question. I have a web mobile application. This application has his authentication part (with Auth component). Now one features of the web application is that the user in certainly situation receives a sms with a link. If he clicks on link I must open a session that allows on

How to expire the session when the browser window is closed?

2010-10-28 Thread marco.rizze...@gmail.com
Hi I have CakePHP 1.2 I have Security.level = medium because with high I have many problems with Ajax calls because the session is renewed every time. With Security.level = medium I have noted that the session doesn't expire when I close the browser window. My question is how can do to expire sess

Question about Cake manage session

2010-11-10 Thread marco.rizze...@gmail.com
Hi , I have a curiosity. If I have a php script inside the Cake webroot and in this script I try to do print_r($_SESSION); I can't see the Cake session Instead if I inlude in this php script the core file of Cake session and I do a CakeSession->start then with print_r($_SESSION) I can see the Cake

Fatal Error and warnings on cakephp core with PHP 5.3

2010-11-13 Thread marco.rizze...@gmail.com
Hi I have downloaded cakephp 1.3.5.0 and I have PHP 5.3.3 I have unzip cake and I try to see if it works correctly and I get this errors : Warning (2): strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or

Where is the Wiki about Media Plugin of David Persson

2010-11-29 Thread marco.rizze...@gmail.com
Hi I can't find more the Wiki about Media Plugin of David Persson. Can someone give me the new url to the Wiki? I don't remember how use medium helper. Many Thanks Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this m

Re: Where is the Wiki about Media Plugin of David Persson

2010-11-29 Thread marco.rizze...@gmail.com
media.ph... > > - David > > On 29 Nov., 16:19, "marco.rizze...@gmail.com" > > wrote: > > Hi > > I can't find more the Wiki about Media Plugin of David Persson. > > Can someone give me the new url to the Wiki? > > I don't remember how use

Error on syntax of localization file default.po

2009-09-03 Thread marco.rizze...@gmail.com
Hi I try to use the localization of Cake. I have se in my errors.po: msgid "The submitted file extension is not permitted, only %s permitted." msgstr "L'estensione del file caricato non è permessa, solo %s sono permesse." But in my code when I have this __d('errors',''The submitted file extensio

How use Ajax helper and Javascript helper to do js file?

2009-09-05 Thread marco.rizze...@gmail.com
Hi I have noted that in my page I use heavily the ajax helper and javascritpt helper. Now I would move all this code generating by these helpers in a single js file (inside webroot). My question is what is the way (the best way) for to this? More precisely I would continue to use Ajax helper and J

Question about on merge two different Model paginate

2009-09-07 Thread marco.rizze...@gmail.com
Hi I have this situation: I have a model Event and a model News , Both models have the field 'created' . Now in my view I would create a single list where there is there are both each others order by created. Example Event 107/09/09 News 107/09/09 News 206/07/09 .. .. .

Problem with Security component and form submit

2009-09-10 Thread marco.rizze...@gmail.com
Hi I use Security component and I have a view like this: create(NULL, array( 'url' => '/test/'))); ?> input('testValue',array('name'=>'data[testValue]', 'id'=>'testValue','label' => 'Test Value:','options' => $testValues)); ?> /div> end(__d('buttons',"Try",true))); ?> When I try to submit the

Question on the method input of Form helper relative to type 'date'

2009-09-10 Thread marco.rizze...@gmail.com
Hi I use Form helper like this: e($form->input( 'startDate' , array( 'id' => 'starDate', 'name' => 'data[starDate]', 'label' => 'Start date:' , 'type' => 'date', 'dateFormat' => 'DMY', '

CakePHP and scalability

2009-09-21 Thread marco.rizze...@gmail.com
Hi I have developed my web application with CakePHP. For the moment I use one Apache server and one MySql server. Now I have noted that my application is getting slow because the numbers of users is increasing. So I have decided that is the time to scale my architecture. I have tried to find some

Javascript inside a ajax content not work

2009-09-28 Thread marco.rizze...@gmail.com
Hi I use ajax helper to load the content of a div inside my page. In this ajax content I have this: codeBlock('var value='.$value.';'); ?> But when I try to use the javascript variable value I get the error that the value doesn't exist. In my ajax call I have set eval to true. Can someone tell

How use ACL in a particular situation

2009-09-29 Thread marco.rizze...@gmail.com
Hi I have a design question on ACL that I would use in my system. The problem is my system is a bit different from standard. I have users that can be belong to many teams. So a user can belong to two,three,four etc... teams. Moreover I have to manage the access of users to a document's list. To do

Possible bug relative to use of memcache

2009-10-06 Thread marco.rizze...@gmail.com
Hi I have installed memcache on my system. I have setted CakePHP to use memcache. I have setted the Configure::write('Security.level', 'medium'); All seems to work but sometimes I lost the session. In particular I note this when I do a sequence of ajax call. A simple example to show this err

Ajax call with external redirect doesn't work

2009-10-14 Thread marco.rizze...@gmail.com
Hi I must do a ajax call to an external site. I use a proxy to circumvent the Same Origin Policy. My action-controller proxy is: function proxy($url) { $this->redirect($url,301,true); } In my view when I do the ajax call I get the error : Error: Http:Controller could not be fo

Re: Possible bug relative to use of memcache

2009-10-15 Thread marco.rizze...@gmail.com
in this situation I get all problems that I have described. Marco > > On Oct 6, 5:19 pm, "marco.rizze...@gmail.com" > > wrote: > > Hi > > I have installed memcache on my system. > > I have setted CakePHP to use memcache. > > I have setted the    

Auth component and which fields must be saved in session

2009-10-17 Thread marco.rizze...@gmail.com
Hi I use the Auth component to login in my application. I have noted that when the login is correct all fields of User model are saved in the session. How can I do so only some fields are saved in session and the other not? Thanks Marco --~--~-~--~~~---~--~~ You rec

Containable behaviour doesn't return all data

2009-10-30 Thread marco.rizze...@gmail.com
Hi I use containable behaviour, but I don't get all data that I have requested My code is : $options['fields'] = array('User.*'); $options['conditions'] = array('User.username' => $user_id); $options['contain'] = array( 'Orga

Re: Containable behaviour doesn't return all data

2009-10-31 Thread marco.rizze...@gmail.com
! > You don't get the team! > > I am guessing - are you trying to get all the users in the first team > for the specified user? > Enjoy, >    John > > On Oct 30, 6:30 pm, "marco.rizze...@gmail.com" > > wrote: > > Hi > > I use containabl

Re: Containable behaviour doesn't return all data

2009-10-31 Thread marco.rizze...@gmail.com
t;Team->find(...) > > Enjoy, >    John > > On Oct 31, 12:13 pm, "marco.rizze...@gmail.com" > > wrote: > > Yes I try to get all the users of the team with id=4 but I don't get > > anything. > > Where do i mistake? > > > On 30 Ott, 20:

How define HABTM with models without jointable

2009-11-03 Thread marco.rizze...@gmail.com
Hi I have 2 models that haven't DB like datasource. Now I would set a HABTM relation between these models ( I manage the data to save with my create method in my datasource). Now If I don't set a jointable when define HABTM relation I get an error. How can I define a HABTM relation without jointa

Best practise to manage user's selections and user's views

2009-12-18 Thread marco.rizze...@gmail.com
Hi In my application I have the model "Item" and the model "User". Every item is visible by some users and it isn't visible by other users. So I have a HABTM between "User" and "Item". Now I must register when a user views an item and when a user selects a item (a user can select some visible items

HasOne relation between model with DB like datasource a model with notDB like datasource

2010-05-14 Thread marco.rizze...@gmail.com
Hi I have to define a hasOne relation between model (model A) with DB like datasource a model (model B) with datasource that isn't a DB. If I have this controller operation: pr($this->ModelA->find('all')); die(); I have noted that CakePHP products a single sql que

Problem with Media Plugin of David Persson

2010-05-21 Thread marco.rizze...@gmail.com
Hi I have installed the Media Plugin in my system (I work on windows system). I try to test if all works using directly the Attachment Model. I try to upload a jpeg but I get always an mime type error. I have mime_magic installed. I try to do a bit of backup on code of Media Plugin and I have find

Problem with Media Plugin of David Persson

2010-05-21 Thread marco.rizze...@gmail.com
Hi I have installed the Media Plugin in my system (I work on windows system). I try to test if all works using directly the Attachment Model. I try to upload a jpeg but I get always an mime type error. I have mime_magic installed. I try to do a bit of backup on code of Media Plugin and I have find

Re: Problem with Media Plugin of David Persson

2010-05-21 Thread marco.rizze...@gmail.com
, 16:15, "marco.rizze...@gmail.com" wrote: > Hi > I have installed the Media Plugin in my system (I work on windows > system). > I try to test if all works using directly the Attachment Model. > I try to upload a jpeg but I get always an mime type error. > I have mime_magi

Problem with using XML with CAKEPHP

2010-06-07 Thread marco.rizze...@gmail.com
Hi I would use XML in my application. I define my default layout in xml like : "); ?> Now when I call a page like : /{controller}/{action}.xml I get this error : Error interpretation XML: non well-formed Line number 2, column 3: ---^ Can someone help me about this? Check out the new CakePHP

Validate only some field

2010-06-08 Thread marco.rizze...@gmail.com
Hi I have this need. I have to do a model's save with a field that normally can't be empty but in this case can be empty. How can I do to save doing the validation only on some fields and not on others fields? Many Thanks Check out the new CakePHP Questions site http://cakeqs.org and help others w

Question on encoding on database.php

2010-06-12 Thread marco.rizze...@gmail.com
Hi I have a old DB.Now I must do a CakePHP app on this Db. For the moment I do the scaffolding but I have noted that in edit.php I see all fields empty. If I set encoding in database.php like 'encoding' => 'utf8' all works fine. Can someone explain me why is this and what is the difference? Then I

Question about Media Plugin of David Persson

2010-06-18 Thread marco.rizze...@gmail.com
Hi I use MediaPlugin of David Persson. All works perfectly. I have only this question about the use of this plugin I have the model Photo that is configurated like : var $actsAs = array( 'Media.Polymorphic' => array( 'classField' => 'model',

Re: Question about Media Plugin of David Persson

2010-06-21 Thread marco.rizze...@gmail.com
Thank you very much Andrey I have another question. I have protected the Transfer Directory where i have uploaded images If I use the cakephp html helper to show these images in my pages I can't show anything With media helper is it possible to show these image in my pages or I must use another met

Re: Media Plugin - Getting Started

2010-07-09 Thread marco.rizze...@gmail.com
Hi I would ask another question about media plugin: In my attachment model I have this configuration for Media.Transfer: 'Media.Transfer' => array( 'trustClient' => false, 'destinationFile' => ':Medium.short::DS:attachments:DS::Model.id::DS:attachment.:Source.extension:', 'baseDirec

ACL with Users that belongs to many Groups

2010-07-19 Thread marco.rizze...@gmail.com
Hi I'm newbie with cakephp. I have this structure : Users HABTM Groups. Now I would use ACL to manage permissions but ACL is right when the Users belongsTo Groups. I have try to search in the forum but I don't understand if with cakephp ACL it is or isn't possible. Can someone that has tried to do

ACL and find all

2010-07-23 Thread marco.rizze...@gmail.com
Hi I use ACL to control access to model "Post" made by "User". Now I have to find all or paginate all posts that are accessible by a specific user. How can I use ACL inside find operation to do this? Many Thanks Marco Check out the new CakePHP Questions site http://cakeqs.org and help others with

Re: ACL and find all

2010-07-23 Thread marco.rizze...@gmail.com
Have anyone some suggestions about this? On 23 Lug, 13:58, "marco.rizze...@gmail.com" wrote: > Hi > I use ACL to control access to model "Post" made by "User". > Now I have to find all or paginate all posts that are accessible by a > specific user. >

Model like both ACO and ARO in ACL

2010-07-29 Thread marco.rizze...@gmail.com
Hi is it possible use a model in Acl both ARO and ACO? Thanks Marco 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 Google Groups "CakePHP" group. To post to this gr

Re: Model like both ACO and ARO in ACL

2010-07-29 Thread marco.rizze...@gmail.com
Can someone some suggestion for me? Thanks On 29 Lug, 09:41, "marco.rizze...@gmail.com" wrote: > Hi is it possible use a model in Acl both ARO and ACO? > Thanks > Marco Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP rela

Re: Model like both ACO and ARO in ACL

2010-07-29 Thread marco.rizze...@gmail.com
Can you tell me how the model has to be configurated? On 29 Lug, 15:04, AD7six wrote: > On Jul 29, 1:16 pm, "marco.rizze...@gmail.com" > > wrote: > > Can someone some suggestion for me? > > Yes. Check out the new CakePHP Questions site http://cakeqs.org and

Configuration in David Persson MediaPlugin in cake 1.3

2010-08-05 Thread marco.rizze...@gmail.com
I'm using David Persson MediaPlugin. With the version relative to cake 1.2 all works fine.Now I'm upgrading my web application to cake 1.3 so I try to use the Media Plugin version relative to cakephp 1.3. I have some problem with the use of callback "transferTo" instead of 'destinationFile' config

Question about Media Plugin of David Persson

2010-08-30 Thread marco.rizze...@gmail.com
Hi I use MediaPlugin of David Persson. All works perfectly. I have only this question about the use of this plugin How can I set the plugin to use .zip file , .7zip file , .rar file For the moment I get always this error : Fatal error: Uncaught exception 'Exception' with message 'No adapters conf

Re: Question about Media Plugin of David Persson

2010-09-13 Thread marco.rizze...@gmail.com
But I get this error: Fatal error: Media_Info_Generic::require_once() [function.require]: Failed opening required 'c:\.\plugins\media\libs\mm\src\Media\Info/ Adapter/Document.php' in C:\.\plugins\media\libs\mm\src\Media\Info \Generic.php on line 54 Someone can help me about this? Thanks On 30 A

Re: Question about Media Plugin of David Persson

2010-09-14 Thread marco.rizze...@gmail.com
Is here someone that uses this plugin? On 13 Set, 15:43, "marco.rizze...@gmail.com" wrote: > I try to resolve this error with this setting in core.php : > > Media_Info::config(array( >         'document' => array('Document'), >         'image&

Web statistics with CAKEPHP

2009-05-05 Thread marco.rizze...@gmail.com
Hi I have a web application with CakePHP I would have some statistics about the use of web application. It is not enough use the log file of the web server because I would store the id of the logged user. I would ask if exist an existing system in CakePHP to do it? Many Thanks --~--~-~--~

problem with use of unique attribute in HABTM

2009-05-07 Thread marco.rizze...@gmail.com
Hi I use the unique attribute in a HABTM relation. Now If it's true (default value) cake should first delete existing relationship records in the foreign keys table before inserting new ones, when updating a record. Instead I noted that it happens only if in updating operation I have the data rel

Add "created" field to HABTM join tables

2009-05-07 Thread marco.rizze...@gmail.com
Hi I have added "created" field to HABTM join tables, but when I try to do a save I noted that this field aren't updated automatically. Is it normal or that is some problem? Many Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Question about how manage particular data in session

2009-05-11 Thread marco.rizze...@gmail.com
Hi I have a web application with has many services. Now user has a main page from that he can access to every services. Now I keep the value of service_id inside the session. My problem is that the user can have many services opened simultaneously (every service in a different tab ) so when the

How manage triple relation between Model in CAKEPHP?

2009-05-15 Thread marco.rizze...@gmail.com
Hi I have three model that have a triple relation between them. How can I manage this triple relation between Model in CAKEPHP? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, s

Question about Error handling

2009-05-22 Thread marco.rizze...@gmail.com
Hi I would to do a centralized system to manage error in production in my application. For the moment I manage cake error with app_error.php I manage php error inside boostrap.php I manage database error inside onError in model I would make a single script from which manage all errors so if I woul

CakePHP and web deployment with CAPISTANO

2009-05-22 Thread marco.rizze...@gmail.com
Hi I would use CAPISTRANO for web deployment of my cakephp application. I have a big doubt about this. The doubt is about how manage js and css minify and compress between development enviroment and production enviroment? Pratically I have that each view has his js scripts and his css scripts (for

Model with Dynamic Data Fields

2009-05-23 Thread marco.rizze...@gmail.com
Hi My problem is about the project of the models of my web application I have a model Document . The problem is that this model must have dinamic data fields. A document can have like fields : title .text , data Another can have : title, number , attachment ect... This fields can have different ty

How manage XSLT with cakePHP

2009-05-25 Thread marco.rizze...@gmail.com
Hi I have to manage some xml that have an xsl associated. What is the best way to manage xsl in cakephp? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@g

Problem about data modelling in CAKEPHP

2009-05-25 Thread marco.rizze...@gmail.com
Hi I have a problem about modelling data of my application and I don't know how resolve it. I present my situation: My E-R is __ _ | | N/\M || | Document || DocumentField |

OnError on AppModel

2009-06-08 Thread marco.rizze...@gmail.com
Hi I have this strange behaviour that I can't to understand. I would try to use the onError callback function. Now If i set the onError function inside a model it works fine. If I set the onError function inside AppModel It doesn't work. Is it someone can help me about this? --~--~-~--~

Scalability of a CakePHP application

2009-06-11 Thread marco.rizze...@gmail.com
Hi I develop a web application in cake and now I must to scale my system. I think to replicate all my code in all my webservers but I have a doubt : The static images I must replicate in all them? And the javascripts and the css in webroot? If not how can I modify the helpers (html , javascript .

How using shells inside plugin directory

2009-06-13 Thread marco.rizze...@gmail.com
Hi I have installed a plugin in my cakephp app. Now inside this plugin there is a shell that helps to configure the plugin. My problem is that i don't know how tell to cake console to use this shell My shell is in app/plugins/media/vendors/shells Sorry for the banal question --~--~-~-

Problem with Media Plugin of David Persson

2009-06-15 Thread marco.rizze...@gmail.com
Hi I try to use MediaPlugin of David Persson. I have installed it I config it but when I tr8y test it using documentation (http://wiki.github.com/davidpersson/media/attachment- model ) but It doesn't work (the plugin doesn't save the attachment). My situation is: I have User model with :

EAV (Entity-Attribute-Value) Data Model with CakePHP

2009-06-15 Thread marco.rizze...@gmail.com
Hi I must use a EAV schema for my web app but I have no idea about how realizate this in cake? I have a table with entities , a table with atrributes and many table with value (one for datetime value,one for varchar value ,one for text value etc. ). Can someone give me some suggestion about this?

Using external server like static server (for image,css,js and file uploaded by user )

2009-06-19 Thread marco.rizze...@gmail.com
Hi For improve performance I think to use an external server like static server (with lighttpd) to provide static content like image,css, js and so the file uploaded by user. I would ask if someone has experience about this and how he has configured CAKE to do this? --~--~-~--~~

BelongsTo Fields Error

2009-07-01 Thread marco.rizze...@gmail.com
Hi I have this model: class Document extends AppModel{ var $belongsTo = array( 'Author'=>array( 'className' => 'User', 'conditions' => '', 'fields' => 'Author.id,Author.surname,Author.name',

Containable and Pagination

2009-07-06 Thread marco.rizze...@gmail.com
Hi I have a containable model. I would apply the pagination on the results inside contain. Example: Models : Document hasMany User In documents_controller.php I have this: $document=$this->Document->find('first', array( 'fields' => array('Document.*'), 'conditions' => array('Docu

Pagination add parameter to type of find to the url

2009-07-21 Thread marco.rizze...@gmail.com
Hi I use pagination in a my view , in the relative action of controller I use the find('matches') that Nate has shared in bakery. Now in the view in helper paginator is added a "matches" parameter to the url. Is It possible to eliminate this from the url that is created by pagination helper? Many

Ajax Pagination Helper

2009-07-22 Thread marco.rizze...@gmail.com
Hi I try to use ajax pagination but I get always an error if I try without ajax the pagination works. My code is: view.thtml: link('test', array( 'controller' => 'documents', 'action' => 'test'), array( 'update' => 'dataRecip

Speed up load time page problem with Ajax Helper

2009-08-01 Thread marco.rizze...@gmail.com
Hi I would speed up loading time page so I would create only one javascript and load it at the bottom of page. Now I have this problem in this only one javascript I have also prototype and scriptaculous and in my page I use for example Ajax helper but obiusvly I get a javascript error if I load t

  1   2   >