Can't save associations CakePHP 3

2015-03-11 Thread ivan neykov
 

Hi, 

I have two tables – Projects and ProjectsImages. When adding new project I 
want also to add one record in ProjectsImages with foreign key (project_id) 
equal to newly added project id. Values in other ProjectsImages fields must 
be default.

According documentation “When you are saving an entity, you can also elect 
to save some or all of the associated entities. By default all first level 
entities will be saved…”, so I believe even don’t need ‘associated’ option, 
but it doesn’t work.

 

 

This is association for Projects table:

 

public function initialize(array $config) {

…..

$this->hasMany('Images', [

'className' => 'ProjectsImages',

'foreignKey' => 'project_id',

'dependent' => true

]);

…..

 

And this is add action in Projects controller:

 

public function add() {

$project = $this->Projects->newEntity();

if ($this->request->is('post')) {

//$this->request->data['images'] = [['parent_id' => null]];

$project = $this->Projects->patchEntity($project, 
$this->request->data, ['associated' => ['Images']]);

//$project->dirty('images', true);

if ($this->Projects->save($project)) {

……

 

I tried variants with and without data['images'], and with and without 
dirty.

There are no errors, record in Projects table is ok, but no record in 
ProjectsImages.

The association is seems to be ok, because it’s retrieves data with this:

$project = $this->Projects->get($id, ['contain' => ['Images']]); 

 

I read related documentation couple times and can’t figure out what is 
wrong.

 

Thanks 

 

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


PDF Render in View

2014-05-25 Thread Ivan Maloparac
Ok. guys I am kinda new in CakePHP, and I came to a problem where i can't 
find a way to render PDF file in a view? 

I would to do it like this http://mozilla.github.io/pdf.js/web/viewer.html 
in iframe?

So if anyone have any suggestion it would be great! :) 

Thank you! 

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: Some talk about complex Applications with CakePHP

2013-11-10 Thread Ivan Rimac
if this is going to be custom web app, based on your text i would really
recommend you using mongodb for this one, it should solve you most of your
concerns regarding speed. you have very good plugin of mongodb for cakephp.


On Mon, Nov 11, 2013 at 8:24 AM, Gaurav Matta wrote:

> Check this
>
> http://itfeast.blogspot.in/2013/10/cakephp-query-and-cache-optimization.html?m=1
> On 10-Nov-2013 8:21 PM, "Ighor Martins"  wrote:
>
>> Hi there!.
>>
>> I'm a web developer from Portugal for like 8 years. I have been using
>> CakePHP for about 1 year and a half right now, and I'm pretty used to it,
>> with a good knowledge of the Framework.
>>
>> On the last month, the company I work for, decided to create a new
>> company and engage on a new project.
>> The idea is to create a platform based on the needs of the company. It's
>> something like these sites: http://www.lynda.com/,
>> https://www.coursera.org/ and etc, but a little bit more complex, since
>> our final users isn't singular people, and some others functional
>> requirements that has to be done.
>>
>> So, Long story short, since last month we are developing a really small
>> "sneak peek" of the platform working (because we need something functional
>> ASAP), and then on the next month we're going to re-factor it all to
>> develop the final product. As you can imagine I'm using CakePHP on this
>> initial preview, and I'm wondering if I couldn't use CakePHP for the final
>> product too.
>>
>> We all know that a lot of people complain about CakePHP performance. But
>> we know too that 80% of these complains is due to bad use of the Framework.
>> Ok, Cake has a way of working that in some cases may have a really big
>> performance impact, for example it trying to format all the data into
>> relational arrays, which could be a problem in querys that return a really
>> big bunch of data, but ...
>> Sincerely performance isn't my biggest concern.
>> My biggest problem is:
>> This will be an application, with a custom software design. And CakePHP
>> almost force us to follow it's strict design. At the same time, this
>> platform won't require that enough for me to move to something like Zend.
>>
>> So, I have knowledge about Cake, but I don't really know the best
>> practices to develop big applications with Cake. Only normal websites.
>> Sometimes I even feel like cake almost force us grow our controllers code
>> instead of models, and that's what's making me sad.
>> To give you an example:
>> I normally do things like this on controllers:
>> $this->MyModel->find('all', array(
>>   'contain' => array(
>>  'SecondLevelThing' => array(
>>'ThirdLevelThing' => array(
>>   'conditions' => 'thirdLevelThingConditions'
>>),
>>'conditions' => 'secondLevelThingConditions'
>>  )
>>   )
>> ));
>>
>> Then I need this same information on other places of application. So I
>> just repeat the code, but as you can see, this is already a custom code, I
>> can't be re-writing this everywhere.
>> So I should do something like:
>> $this->MyModel->id = x
>> $this->MyModel->getCustomInfo();
>>
>> and this object method would return that information. But the problem is,
>> when I do that, I see myself fighting against Cake default way of working
>> in a lot of things, for example if I want to paginate that information, and
>> other things.
>>
>>
>> I know CakePHP 3 will be there in a while to solve some of these issues,
>> and it will finally return objects instead of arrays :)
>> but for now, how is the best design pattern to follow with CakePHP when
>> developing big applications without fighting against the framewok?
>>
>>
>> Thank you guys.
>>
>> --
>> 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 unsubscribe from this group and stop receiving emails from it, send an
>> email to cake-php+unsubscr...@googlegroups.com.
>> To post to this group, send email to cake-php@googlegroups.com.
>> Visit this group at http://groups.google.com/group/cake-php.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>  --
> Like Us on Face

Re: CakePhp doesn't read the script

2013-09-17 Thread Ivan Rimac
you dont have php tags open somewhere in the beginning


On Mon, Sep 16, 2013 at 10:23 PM, George Manvelishvili  wrote:

> I updated my apache  and php on local server and my project on cake stoped
> working. Now it looks like on the picture
>
>
> <https://lh5.googleusercontent.com/-lMpm_kBoAAw/UjdnyAgRjgI/FUE/f2I4QgTZ_1A/s1600/%D0%BA%D0%B5%D0%B9%D0%BA.png>
>
> Please HELP is extremely needed!
>
> --
> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to cake-php+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
*Ivan Rimac***
mail: i...@rimac.hr
*tel: +385 95 555 99 66*
*http://ivanrimac.com*
*http://rimac.hr*

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Mongodb with cakephp

2013-09-16 Thread Ivan Rimac
- check if you have mongo driver for php installed on your server
- check is your username and password for mongodb correct


On Mon, Sep 16, 2013 at 9:07 AM, raj kumar Pustela wrote:

> hi to all,
>
>how to resolve
>   *Fatal error*: Undefined class constant 'Mongo::VERSION' in *
> /var/www/vhosts/
> nirvahak.com/httpdocs/kake/lib/Cake/Model/ConnectionManager.php* on line *
> 107.*
> * *
> *  If any one known pls help me.*
>
> --
> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to cake-php+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
*Ivan Rimac***
mail: i...@rimac.hr
*tel: +385 95 555 99 66*
*http://ivanrimac.com*
*http://rimac.hr*

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Unrelated data

2013-09-14 Thread Ivan Rimac
i had similar cases in my apps. i usually handle this with creating a model
with custom made methods inside it. afterwards, just load the model and use
model methods. i dint ran into any troubles and i know this is pretty much
straight forward way of doing this kind of thing. i guess making a
component or a plugin gives some extra work, but im not sure is it a so
much better way worth those extra work.
hope this helps.
cheers


On Sat, Sep 14, 2013 at 3:34 PM, Jeremy Burns
wrote:

> A question that I perhaps I should know the answer to, but I am not clear
> on the recommended approach - I am open to ideas.
>
> I want to add a wizard process to an app. A wizard takes a user through a
> series of steps by visiting pages in sequence. Wizard availability and
> progress is managed in the session. The wizards are configurable with the
> definitions stored in tables (wizards, wizard_types and wizard_steps) - I
> have all the MVC goodness sorted for managing those. The wizard tables are
> not associated with any other tables.
>
> I want to make those wizards available to users. So first I need to grab
> the list of wizards from the Wizard model and store them in session. When a
> user chooses one, an element appears that gives them information about the
> wizard, shows the completed, current and next steps and takes them to a
> page. So I need to access the wizard data/models/controllers from other
> models/controllers that are not related to any others. Ideally this would
> be a plugin as it lays over other functionality that ought to be agnostic
> of it. I guess I could:
>
> 1) Make it a plugin - but I still have the same challenge - how do I call
> a plugin->controller function from another?
> 2) Do some clever plugin/component callback trickery that is beyond me.
> 3) Use loadModel - but then I don't have access to controller functions
> (for managing the session, for example) and need to stitch functions into
> core models.
> 4) User requestAction in elements - but that seems a bit hacky. In any
> case, I probably need something triggered in AppController->beforeFilter to
> check the wizard status and decide what to do next.
>
> So - pardon my ignorance - but I am really not sure the preferred way of
> doing this. What are your recommendations?
>
> --
> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to cake-php+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
*Ivan Rimac***
mail: i...@rimac.hr
*tel: +385 95 555 99 66*
*http://ivanrimac.com*
*http://rimac.hr*

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


File load from server javascript cakephp2

2013-05-30 Thread ivan . alberquilla


**

I have a aplication in cakephp2. In home.ctp I wan't to use a javascript 
function to load a file from filesystem and create a track in a map, but I 
donn´t know how to locate it.

In the javascript function I declare a var with the name of the file and 
then I check if the file exists, and always return false.

var gpxfile='WWW_ROOT.files.DS.hoyo.gpx';
if(file_exists(gpxfile)){
alert('Si existe');} else {
alert('No existe'); }

I tried with the names:

var gpxfile='WWW_ROOT.files.DS.hoyo.gpx';
var gpxfile='/app/files/hoyo.gpx';
var gpxfile='/files/hoyo.gpx';
var gpxfile='/webroot/files/hoyo.gpx';

But nothing. How can I locate it?

It is necesary to configure the core.php?

Thanks

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Model and Datasource for NoSQL (MongoDB) - relations

2013-03-08 Thread Ivan Rimac
maybe this could be some very good solution, but it needs some hard shit to
do in database layer: http://www.doctrine-project.org/ basically it
intercepts everything u send to db, turns it into whatever is on the the
other side and get back to you what u requested.



On Fri, Mar 8, 2013 at 7:09 PM, Vanja Dizdarević
wrote:

> Disclaimer: If there is a better place to ask this question, do tell!
>
> I have been working on this MongoDB plugin for 
> Cake<https://github.com/ichikaway/cakephp-mongodb>- specifically, I am 
> working on relations.
>
> As you might know, NoSQL systems offer a different approach on
> associations. For one, there is no "join tables" (at least not by default),
> but the associated records are stored as an array of ID's in the original
> record (and vice-versa for HABTM). There is an extensive amount of other
> possibilities, but for starters, I would like to mimic Cake's default model
> operations.
>
> As I understand it, the CRUD operations on associations are generated (or
> rather, instructed) by the Model class, not the DataSource class. Current
> Model implementation doesn't allow the datasource to decide which IDs go
> where and to adjust the logic of storage to the specific database adapters
> (and strategies).
>
> In short, Cake Model doesn't do that well with NoSQL which I guess is a
> design decision.
>
> I am, however, wondering what would be the best approach to solve these
> issues:
>
>- Model doesn't recognize MongoID objects as UUIDs (best case scenario
>is a 24hex), Cake supports only 16 and 32 binary or string types
>- Model doesn't support the HABTM instructions specific to Mongo/NoSQL
>
> So, I am wondering how to go about solving these issues. Two ideas:
>
>
>- Create an intermediate "MongodbModel" class (ex. Article (app model)
>extends MongodbModel extends AppModel extends Model) and override the
>saveMany, saveAssociated and saveAll methods.
>- Create a Behavior and modify the CRUD logic where needed.
>
> Which approach would be more conventional? Is the second one at
> all feasible? Any other ideas are greatly appreciated.
>
> You can check out the code at
> https://github.com/dizyart/cakephp-mongodb/tree/2.0b the MongoAssociation
> test case offers some insight in what I'm trying to do (hasMany/belongsTo
> assoc. work fine). If additional details are required, I'd be happy to give
> them.
>
> Cheers!
>
>  --
> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to cake-php+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Form action is /login?url=login

2013-01-14 Thread Ivan Rimac
probably the method of the form is GET. and he is thinking, okay im in
login page, if i dont have specified action, set this current url for the
action.
just a wild guess. it is odd situation.


On Tue, Jan 15, 2013 at 6:58 AM, Jeremy Burns
wrote:

> I have a view that contains two forms; a login form and a forgotten
> password form. The latter is fine. The action of the login form is
> /login?url=login, which seems odd. The form and its controls are built
> using the Form helper. Any idea why ?url=login is on the url? It's the only
> instance of this I can in the entire app.
>
> --
> 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 email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: queries on HABTM relationships

2013-01-02 Thread Ivan Rimac
This simply is solvable with:

$this->Auth->userScope = array('User.can_access_admin' => 1);

Put that in you beforeFilter function inside AppController, and your
problems are solved. If you want to redirect them, than you shoukd do
something like this:

if ($this->Auth->user()) {
if(isset($this->params['admin']) && $this->Auth->user('admin') !=
1) {
  $this->redirect('/');
}
}

Hope this helps.
Cheers



On Wed, Jan 2, 2013 at 7:59 PM, lowpass  wrote:

> When running a find('count') the contain param is useless. This is
> because the main query is fetching a sum, not a set of records from
> which to fetch the associated 'contain' records.
>
> Are you using AuthComponent? You can use that to fetch the User and
> associated records. However, I can't remember how deep it goes. To see
> what records it has, put this in your UsersController login method:
>
> die(debug($this->Auth->user()));
>
>
> http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#accessing-the-logged-in-user
>
> On Tue, Jan 1, 2013 at 5:23 PM, Stefano Campanella
>  wrote:
> > Hello all,
> > this is my first time posting here. I recently started to study how to
> use
> > CakePHP and I'm trying to develop a website.
> > In my website I am writing a custom authorize component where each user
> get
> > one or more groups and each group has one or more permissions associated
> to
> > it.
> > I have problems in using the find() method.
> > This is my structure:
> > User hasAndBelongsToMany Group
> > Group hasAndBelongsToMany Perm
> >
> > I have attached Containable to all the Models (in AppModel)
> >
> > now in my authorization component I need to check if a group has a
> specific
> > permission, and for this I use find():
> >
> >> if(!isset($this->controller()->Group)){
> >>   $this->controller()->loadModel('Group');
> >> }
> >> $n_perm=$this->controller()->Group->find('count',array(
> >>   'conditions'=>array('id'=>1),
> >>   'contain'=>array(
> >> 'Perm'=>array(
> >>   'conditions' => array('id'=>'can_access_admin')
> >> )
> >>   )
> >>
> >> ));
> >
> >
> > I would expect this to give me a result >=1 if group 1 has the
> > 'can_access_admin' permission, and =0 if the group has no such
> permission.
> > This is not what actually happens, the only query that cakePHP shows is
> > this:
> >
> > SELECT COUNT(*) AS `count` FROM `groups` AS `Group` WHERE `id` = 1
> >
> > And it is obviously not enough to find what I requested.
> >
> > Can anyone help me?
> >
> > Thanks
> >
> > --
> > 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 email to cake-php@googlegroups.com.
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com.
> > Visit this group at http://groups.google.com/group/cake-php?hl=en.
> >
> >
>
> --
> 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 email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>


-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: authentication and authorization is not working

2012-12-15 Thread Ivan Rimac
add something like this into your User model:

public function beforeSave() {
if (isset($this->data[$this->alias]['before_password'])) {
  $this->data[$this->alias]['password'] =
AuthComponent::password($this->data[$this->alias]['before_password']);
}
return true;
}

accordingly you need to set into your view:

Form->input('User.username'); ?>
Form->input('User.before_password', array('type' =>
password)); ?>

try that.
cheers




On Sat, Dec 15, 2012 at 1:17 PM, polutan  wrote:

> repeat and repeat again your effort.. try and error..
>
>
> 2012/12/13 ashy 
>
>> Hello All,
>>
>> I am following the tutorial below
>>
>> http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#identifying-users-and-logging-them-in
>>
>> The password is not getting hashed by user add method. Thats the reason,
>> authentication is not getting completed. Any ideas?
>>
>> thanks
>> ashy
>>
>> --
>> 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 email to cake-php@googlegroups.com.
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com.
>> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>>
>>
>>
>
>
>
> --
> *Coklat Stroberi -- Web Dev Training Centre*
> http://www.facebook.com/pages/Coklat-Stroberi/249514251728226  (info
> lebih lanjut)
> http://coklatstroberi.net
> Jl. Raya Padang Luwih (Dalung) No.141 - Telp. (0361) 9006118 atau
> 08174128301 - Badung, Bali. Sebelah timur traffic light pertigaan
> perumahan dalung permai.
>
>
>  --
> 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 email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: pagination problem, please help

2012-11-18 Thread Ivan Rimac
i think this is your answer:

function category($id = null){

if($this->is_user()) {
 $this->set('user_obj', $user =
$this->User->findById($this->user['id']));
}

$category = $id;
$cat_id = array_search($category,
Configure::read('Blog.blog_category'));

$this->paginate = array('Blog' => array('conditions' =>
array('Blog.categories' => $cat_id), 'limit' => 12, 'recursive' => -1));
$blogs = $this->paginate('Blog');

$this->set(compact('blogs', 'category'));
}


On Sun, Nov 18, 2012 at 9:05 PM, Chris  wrote:

> hi guys,... I have a problem with pagination in a controller,... can
> someone help me please,...
> I'm getting an error: SQL Error: 1054: Unknown column 'limit' in 'where
> clause'
>
> how can I do this,...?
>
>   function category($id = null)
>   {
> if($this->is_user())
> {
>   $this->set('user_obj', $user =
> $this->User->findById($this->user['id']));
> }
>
>   $category = $id;
>
>   $cat_id = array_search($category,
> Configure::read('Blog.blog_category'));
>
>   $this->set('category', $category);
>
>   $blogs = $this->Blog->find('all', array('conditions' =>
> array('Blog.categories' => $cat_id)));
>
>   $this->set('blogs', $blogs, $this->paginate('Blog', array('limit' =>
> 12) ));
>
> thanks in advance,
> chris
>
>  --
> 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 email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Order by field containing aggregate function result (MIN)

2012-11-08 Thread Ivan Rimac
try like this

$this->paginate = array(
   'conditions' => array('Game.time !=' => NULL,  'Game.visible' =>
1, 'Game.end_time !=' => NULL, 'Game.moves !=' => NULL),
'group' => array('Game.uid'),
'order' => array('Game.time' => 'DESC'),
'limit' => 3
);






On Wed, Nov 7, 2012 at 11:01 PM, Ivan Švaljek wrote:

> Hi, I'm having trouble with sorting during pagination. I'm trying to list
> users with lowest solvetime, but order key in paginate method doesn't seem
> to like order field if it's a result of aggregate function like MIN().
>
> This is my action:
>
> public function index() {
> $this->paginate = array(
> 'fields' => array('*, MIN(Game.time AS mintime'),
> 'conditions' => array('Game.time IS NOT NULL AND Game.visible
> = 1 AND Game.end_time IS NOT NULL AND Game.moves IS NOT NULL'),
> 'order' => array('mintime' => 'ASC'),
> 'group' => array('Game.uid'),
> 'limit' => 3
> );
> $games = $this->paginate('Game');
>
> $this->set('games', $games);
> }
>
> ...it doesn't even add an ORDER BY clause in the debug. If some other
> field is set as order argument it works.
>
> --
> 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 email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Order by field containing aggregate function result (MIN)

2012-11-08 Thread Ivan Švaljek
Hi, I'm having trouble with sorting during pagination. I'm trying to list 
users with lowest solvetime, but order key in paginate method doesn't seem 
to like order field if it's a result of aggregate function like MIN().

This is my action:

public function index() {
$this->paginate = array(
'fields' => array('*, MIN(Game.time AS mintime'),
'conditions' => array('Game.time IS NOT NULL AND Game.visible = 
1 AND Game.end_time IS NOT NULL AND Game.moves IS NOT NULL'),
'order' => array('mintime' => 'ASC'),
'group' => array('Game.uid'),
'limit' => 3
);
$games = $this->paginate('Game');

$this->set('games', $games); 
}

...it doesn't even add an ORDER BY clause in the debug. If some other field 
is set as order argument it works.

-- 
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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Issues with digest authentication - need some help

2012-11-03 Thread Ivan Rimac
in app controller

public function isAuthorized() {
  return $this->Auth->user('id');
}

this should solve your problems.



On Fri, Nov 2, 2012 at 5:16 PM, Nir Regev  wrote:

> Hi all !
>
> I'm rather mew to cake and trying to create a set of REST services with
> the need for DIGEST auth.
>
> configuration :
> - I'm using cake 2.2.3
> - in AppController I've got this setup :
>
> public $components = array(
> 'RequestHandler',
> 'Session',
> 'Auth' => array(
> 'authenticate' => array(
> 'Digest' => array(
> 'userModel' => 'User',
> 'realm' => 'somerealm',
> 'fields' => array ('password' => 'digest_hash')
> )
> ),
> 'authorize' => array('Controller')
> )
>
> beforeFilter functions are not defined in Users/App controller
>
> in UsersController I'v added a 'whoami' function to show currently logged
> on user name
>
> Using curl --digest --user  "user:pass" "
> http://127.0.0.1/cake/Users/whoami";
>
> problem is : I can never get the user to login !
> hashes and all are fine, same user can login user forms auth. if I allow
> it.
>
> curl gets 302 redirect to /Users/login
>
> The only time I can get 'whoami' to work is if I Auth->allow it in
> beforeFilter but then I naturally don't have the user logged in.
>
> Any suggestions ?
>
> Thanks, Nir.
>
>
>
>  --
> 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 email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Problem with Cakephp 2.0 Login

2012-10-24 Thread Ivan Rimac
check the isAuthorized function and put it inside app controller...



On Wed, Oct 24, 2012 at 3:52 PM, Nikhil Agrawal wrote:

> check for loginRedirect, u may have redirected it wrong method.
>
>
> On Sat, Oct 20, 2012 at 10:37 PM, Vanja Dizdarević <
> lex.non.scri...@gmail.com> wrote:
>
>> Show us your Controller code.
>>
>> --
>> 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 email to cake-php@googlegroups.com.
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com.
>> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>>
>>
>>
>
>  --
> 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 email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: REST API in 2.x (authenticate for some actions, etc)

2012-10-22 Thread Ivan Rimac
you can use cURL for simulating post requests:

$data = 'data[User][token]=87f77a583929c700119878128dc108bd62ca7772';
$data .= '&data[Ride][start_address]=Osijek, Croatia';
$data .= '&data[Ride][end_address]=Pula, Croatia';

$ch = curl_init('http://domain.com/controller/action.json');

curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$head = curl_exec($ch);
print_r($head);
curl_close($ch);

Then, in some  controller you go:

function action() {
  if ($this->RequetsHandler->ext === 'json') {
//ext could be an xml also, and here you do stuff with post data
  }
}

also inside your routes.php file:
Router::parseExtensions('json');

hope this example helps you.


On Mon, Oct 22, 2012 at 12:42 PM, Zap  wrote:

> Hi everyone.
>
> The webfront of my website is ready, but I want to give access to core
> functions via an API.
>
> Thing is, for public data (like juse rinfo and such), I already used
> request handler to have json or XML special views, so I guess that's ok.
>
> But, I was wondering how to achieve POST action ?
>
> Indeed, I want some actions to need authentification :
>
> Posts -> add
> Posts -> delete
>
> Plus, for the "add" action, I'm wondering how is the data sent ? My posts
> allow 300 characters, bu I Guess it isn't in the url parameters ? Or is it ?
>
> I'm wonering about the routing also, as some actions are under User ->
> view and new one I want to emplement under Posts - >add etc.
>
> Is it possible to regroup this as /api/post/add or api/users/view/ ?
>
> Thanks a lot but the REST doc  wasn't really helpfull to me.
>
> Thanks !
>
> --
> 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 email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Locale prefix

2012-10-22 Thread Ivan Rimac
Nema na čemu! :-)

I had to do only once, and I had dedicated server at my disposal, so it was
relatively easy for me to do it in this way. I did not want to mess with
i18n database strucuture, and all of that things, so I dont have experience
with other ways how to do it. So i am not able to help you with that,
reading the book would be my option :-)

http://book.cakephp.org/1.3/en/view/1230/Localization-in-CakePHP

cheers



On Mon, Oct 22, 2012 at 9:18 AM, Vanja Dizdarević  wrote:

> Hvala Ivane! :D
>
> The code helps a lot.
>
> Subdomains were also my first impulse. But it is much easier for me to
> have it on the same domain for multiple reasons (security
> certificates, seo, cross-domain requests, practical urls, css/js/img
> caching, sessions, portability, etc).
>
> Anyways, I'm currently at "modify the *.htaccess *rewrites and *App.base*".
> Any better ideas?
>
>  --
> 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 email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Locale prefix

2012-10-21 Thread Ivan Rimac
hi there,

I have mz main site where I can acces it as http://domain.com. for multi
languages I made several subdomains, for example http://hr.domain.com, but
subdomain is pointing into the same place as http://domain.com. Okay, now
comes the cake part. Inside my settings file (app/config/settings.php) I
have something like this:

//internationalization and localization
$config['locale_mappings'] = array(
 'at' => 'de_AT',
 'de' => 'de_DE',
 'ch' => 'de_CH',
 'hr' => 'hr_HR',
 ''   => 'eng',
 'www' => 'eng'
 );
Configure::write($config);

and in my app_controller.php:

function beforeFilter() {

$this->recordActivity();

$this->set('appConfigurations', Configure::read('App'));

Configure::load('settings');
$this->getLanguage();
}

function getLanguage() {

  // Now lest see what is happening with subdomain and domain
  $parsedUrl = parse_url($this->RequestHandler->getReferer(),
PHP_URL_PATH);

  $host = explode('.', $parsedUrl);
  $this->set('parsedUrl', $parsedUrl);
  $this->set('host', $host[1]);

  if(count($host) > 2) {
$subdomain = $host[0];
$url_domain = $host[1].'.'.$host[2];
  } else {
$subdomain = null;
$url_domain = $host[0].'.'.$host[1];
  }

  //need this for facebook and twitter apps
  $this->set('subdomain', $subdomain);

  $lang_locale_mapping = Configure::read('locale_mappings', $subdomain);

  Configure::write('Config.language', $lang_locale_mapping[$subdomain]);

  // Set this to be visible accross the app
  $lang_locale_mapping = Configure::read('locale_mappings', $subdomain);
  if($this->layout == 'admin') {
Configure::write('Config.language', $subdomain);
  } else {
Configure::write('Config.language',
$lang_locale_mapping[$subdomain]);
  }
  $this->set('lang', $lang_locale_mapping);
  }

and of course, the app/locale folder look like this:

app/locale/hr_HR/LC_MESSAGES/default.po

and that/s it! I hope you know how to extract the .po files with cake
console (./i18n), after that this is piece of Cake :-)

Also, I presumed that you prepared all of your text inside app for
translation!

Greets




On Mon, Oct 22, 2012 at 8:18 AM, Vanja Dizdarević  wrote:

> Oops, wrong example... Sooo:
>
> domain.com/fr/admin/users
>
>  =
>
> Config.language => fr
> prefix => admin
> controller => users
> action => index
>
>
> On Monday, October 22, 2012 8:17:04 AM UTC+2, Vanja Dizdarević wrote:
>>
>> I am making my site multilingual, with English being the default language.
>>
>> I wish to have *domain.com/* display English, 
>> *domain.com/{language_code<http://domain.com/%7Blanguage_code>(fr|de|sp)}
>> * display the complete app, with all its prefix routing in the selected
>> language. So *domain.com/fr/admin* would translate to Config.language
>> being *fr* and controller => admin, action=> index..
>>
>> How do I achieve this?
>>
>> I have some ugly hacks in mind, but I would like to know if there is a
>> more "conventional" way of doing this. How is this routing done on
>> book.cakephp.org?
>>
>> Cheers!
>>
>  --
> 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 email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: form value in cake 1.3

2012-10-10 Thread Ivan Rimac
For this example I willbe updating the field 'interests' inside 'users'
table.

okay, on top of your view you should have


!!Dont forget to include the jquery file inside your layout view!!

after that, somwhere the input you want to update:


on the bottom of your view:

  $(document).ready(function() {
  $('.interests').editable('/users/edituserinfo/interests', {
 id : 'data[User][id]',
 type  : 'textarea',
 cancel: "<button type=\"cancel\" class=\"button-cancel\"><?php
__('Cancel'); ?></button>",
 submit: '<button type="submit" class="button-ok">OK</button>',
 indicator : '<img src="/img/ajax-loader.gif">',
 name  : 'data[User][interests]',
 tooltip   : "<?php __('Click to edit'); ?>",
 rows  : 3,
 onblur: 'ignore',
 cssclass  : 'myacc-editable-userinfo'
 });
});


and inside your controller a function:

function edituserinfo ($field) {
  if ($this->data) {
App::import('Core', 'sanitize');
$edit_field = Sanitize::clean($this->data['User'][$field]);

$this->User->id = $this->data['User']['id'];
$this->User->query("UPDATE users SET $field = '$edit_field' WHERE id =
" . $this->User->id);
$this->_refreshAuth();
$this->set('result', $edit_field);
  }
} //Here the $field and represents the field inside database, and
$edit_field is the value sent from the view, For this example I used inside
'users' table the field interests











2012/10/10 Chris 

> Ok Ivan,... I setup jeditable
>
> this is in a header:
> Html->script('jquery.jeditable'); ?>
>
> this is my view:
>
> 
> $(function() {
>  $(".edit").editable("/users/ajax_short_status/<?php echo
> $user_obj['User']['id'] ?>", {
>   indicator : "Saving...",
>   tooltip   : "Move mouseover to edit...",
>   event : "mouseover",
>   name : "data['User']['short_status']",
>   style  : "inherit"
>   });
>   });
> 
>
> and this is my function:
>
>
>   function ajax_short_status($id = null) {
> $this->authorize();
>
> if(!($user = $this->User->findById($id)))
> {
>   die();
> }
> else
> {
>   $this->authorize($user['User']['id']);
>
>   $user['User']['short_status'] = $this->data['User']['short_status'];
>
>   $this->User->save($user);
>   echo $user['User']['short_status'];
>   die();
> }
>   }
>
> and it still not saving it... what am I doing wrong...???
> do you have an example please...?
>
> thanks
> chris
>
>
> On Tuesday, October 9, 2012 3:22:00 PM UTC-7, ivnrmc wrote:
>
>> Yes, that is the plugin.
>>
>> sent from my Samsung Galaxy S
>>
>> Ivan Rimac
>>
>> mail: ivn...@gmail.com
>> mob: +385 95 555 9966
>>
>> Dana 10.10.2012. 00:16 "Chris"  je napisao/la:
>>
>> is this the url?
>>>
>>> http://www.appelsiini.net/**projects/jeditable<http://www.appelsiini.net/projects/jeditable>
>>>
>>>
>>> On Tuesday, October 9, 2012 2:32:04 PM UTC-7, ivnrmc wrote:
>>>>
>>>> I am using jEditable for this kind of things, i can send you piece of
>>>> code for this. For this, i think there is a problem with the script, you
>>>> should check is there form generated when you try to edit your short 
>>>> status.
>>>>
>>>> sent from my Samsung Galaxy S
>>>>
>>>> Ivan Rimac
>>>> mail: ivn...@gmail.com
>>>> mob: +385 95 555 9966
>>>> Dana 9.10.2012. 23:10 "Chris"  je napisao/la:
>>>>
>>>>> thanks Ivan for your time,...
>>>>> this is inplace editor action using jquery,... and this is what I have
>>>>> inside my view:
>>>>>
>>>>> where do I put form input,...?
>>>>>
>>>>> 
>>>>>  
>>>>> :
>>>>>  
>>>>> 
>>>>> 
>>>>> 
>>>>>
>>>>>
>>>>> is_authorized($user_obj[&

Re: form value in cake 1.3

2012-10-09 Thread Ivan Rimac
Yes, that is the plugin.

sent from my Samsung Galaxy S

Ivan Rimac
mail: ivn...@gmail.com
mob: +385 95 555 9966
Dana 10.10.2012. 00:16 "Chris"  je napisao/la:

> is this the url?
>
> http://www.appelsiini.net/projects/jeditable
>
> On Tuesday, October 9, 2012 2:32:04 PM UTC-7, ivnrmc wrote:
>>
>> I am using jEditable for this kind of things, i can send you piece of
>> code for this. For this, i think there is a problem with the script, you
>> should check is there form generated when you try to edit your short status.
>>
>> sent from my Samsung Galaxy S
>>
>> Ivan Rimac
>> mail: ivn...@gmail.com
>> mob: +385 95 555 9966
>> Dana 9.10.2012. 23:10 "Chris"  je napisao/la:
>>
>>> thanks Ivan for your time,...
>>> this is inplace editor action using jquery,... and this is what I have
>>> inside my view:
>>>
>>> where do I put form input,...?
>>>
>>> 
>>>  
>>> :
>>>  
>>> 
>>> 
>>> 
>>>
>>>
>>> is_authorized($user_**obj['User']['id'])): ?>
>>> 
>>> $(document).ready(function(){
>>>  $("#editme8").editInPlace({
>>> callback: function(unused, enteredText) { return enteredText; },
>>> url: "/users/ajax_short_status/<?**php echo $user_obj['User']['id'] ?>",
>>>  bg_over: "#cff",
>>> field_type: "textarea",
>>> textarea_rows: "15",
>>>  textarea_cols: "35",
>>> saving_image: "./images/ajax-loader.gif"
>>> });
>>> });
>>> 
>>>   
>>>
>>>
>>> On Tuesday, October 9, 2012 1:17:59 PM UTC-7, ivnrmc wrote:
>>>>
>>>> inside your view you need to havesomething like this:
>>>>
>>>> >>>
>>>> echo $this->Form->create('User');
>>>> echo $this->Form->input('User.**short**_status');
>>>> echo $this->Form->end();
>>>>
>>>> ?>
>>>>
>>>> and then inside your controller action:
>>>> $user['User']['short_status'] = $this->data['User']['short_**sta**
>>>> tus'];
>>>>
>>>> also before save, you need to specify what user exactly are you saving,
>>>> something like this:
>>>>
>>>> $this->User->id = $this->Auth->user('id');
>>>>
>>>>
>>>> 2012/10/9 Chris 
>>>>
>>>>> hi Ivan,...
>>>>>
>>>>> it didn't work,... I even tried
>>>>> $user['User']['short_status'] = $this->data['User']['short_**sta**
>>>>> tus'];
>>>>>
>>>>> no luck,...
>>>>>
>>>>>
>>>>> On Tuesday, October 9, 2012 12:22:57 PM UTC-7, ivnrmc wrote:
>>>>>
>>>>>> $user['User']['short_status'] = $this->data['User']['value'];
>>>>>>
>>>>>>
>>>>>>
>>>>>> 2012/10/9 Chris 
>>>>>>
>>>>>>> hi guys,... I'm in cake 1.3,... please help,...
>>>>>>> I can't read form value from inplace editor in a controller,... any
>>>>>>> other approch,...?
>>>>>>>
>>>>>>>  $user['User']['short_status'] = $this->params['form']['value']*
>>>>>>> *;
>>>>>>>
>>>>>>>   $this->User->save($user);
>>>>>>>   echo $user['User']['short_status'];
>>>>>>>   die();
>>>>>>>
>>>>>>> thanks in advance
>>>>>>>
>>>>>>>  --
>>>>>>> Like Us on FaceBook 
>>>>>>> https://www.facebook.com/**CakePHP<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 email to cake...@googlegroups.

Re: form value in cake 1.3

2012-10-09 Thread Ivan Rimac
I am using jEditable for this kind of things, i can send you piece of code
for this. For this, i think there is a problem with the script, you should
check is there form generated when you try to edit your short status.

sent from my Samsung Galaxy S

Ivan Rimac
mail: ivn...@gmail.com
mob: +385 95 555 9966
Dana 9.10.2012. 23:10 "Chris"  je napisao/la:

> thanks Ivan for your time,...
> this is inplace editor action using jquery,... and this is what I have
> inside my view:
>
> where do I put form input,...?
>
> 
> 
> :
> 
> 
> 
> 
>
>
> is_authorized($user_obj['User']['id'])): ?>
> 
> $(document).ready(function(){
> $("#editme8").editInPlace({
> callback: function(unused, enteredText) { return enteredText; },
> url: "/users/ajax_short_status/<?php echo $user_obj['User']['id'] ?>",
> bg_over: "#cff",
> field_type: "textarea",
> textarea_rows: "15",
> textarea_cols: "35",
> saving_image: "./images/ajax-loader.gif"
> });
> });
> 
>   
>
>
> On Tuesday, October 9, 2012 1:17:59 PM UTC-7, ivnrmc wrote:
>>
>> inside your view you need to havesomething like this:
>>
>> >
>> echo $this->Form->create('User');
>> echo $this->Form->input('User.**short_status');
>> echo $this->Form->end();
>>
>> ?>
>>
>> and then inside your controller action:
>> $user['User']['short_status'] = $this->data['User']['short_**status'];
>>
>> also before save, you need to specify what user exactly are you saving,
>> something like this:
>>
>> $this->User->id = $this->Auth->user('id');
>>
>>
>> 2012/10/9 Chris 
>>
>>> hi Ivan,...
>>>
>>> it didn't work,... I even tried
>>> $user['User']['short_status'] = $this->data['User']['short_**status'];
>>>
>>> no luck,...
>>>
>>>
>>> On Tuesday, October 9, 2012 12:22:57 PM UTC-7, ivnrmc wrote:
>>>
>>>> $user['User']['short_status'] = $this->data['User']['value'];
>>>>
>>>>
>>>>
>>>> 2012/10/9 Chris 
>>>>
>>>>> hi guys,... I'm in cake 1.3,... please help,...
>>>>> I can't read form value from inplace editor in a controller,... any
>>>>> other approch,...?
>>>>>
>>>>>  $user['User']['short_status'] = $this->params['form']['value']***
>>>>> *;
>>>>>
>>>>>   $this->User->save($user);
>>>>>   echo $user['User']['short_status'];
>>>>>   die();
>>>>>
>>>>> thanks in advance
>>>>>
>>>>>  --
>>>>> Like Us on FaceBook 
>>>>> https://www.facebook.com/**CakeP**HP<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 email to cake...@googlegroups.com.
>>>>> To unsubscribe from this group, send email to cake-php+u...@**
>>>>> googlegroups.com**.
>>>>>
>>>>> Visit this group at 
>>>>> http://groups.google.com/**group**/cake-php?hl=en<http://groups.google.com/group/cake-php?hl=en>
>>>>> .
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Ivan Rimac***
>>>> mail: ivn...@gmail.com
>>>> *tel: +385 95 555 99 66*
>>>> *http://ivanrimac.com*
>>>>
>>>>   --
>>> Like Us on FaceBook 
>>> https://www.facebook.com/**CakePHP<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 email to cake...@googlegroups.com.
>>> To unsubscribe from this group, send email to cake-php+u...@**
>>> googlegroups.com.
>>> Visit this group at 
>>> http://groups.google.com/**group/cake-php?hl=en<http://groups.google.com/group/cake-php?hl=en>
>>> .
>>>
>>>
>>>
>>
>>
>>
>> --
>> *Ivan Rimac***
>> mail: ivn...@gmail.com
>> *tel: +385 95 555 99 66*
>> *http://ivanrimac.com*
>>
>>   --
> 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 email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>

-- 
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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: form value in cake 1.3

2012-10-09 Thread Ivan Rimac
inside your view you need to havesomething like this:

Form->create('User');
echo $this->Form->input('User.short_status');
echo $this->Form->end();

?>

and then inside your controller action:
$user['User']['short_status'] = $this->data['User']['short_status'];

also before save, you need to specify what user exactly are you saving,
something like this:

$this->User->id = $this->Auth->user('id');


2012/10/9 Chris 

> hi Ivan,...
>
> it didn't work,... I even tried
> $user['User']['short_status'] = $this->data['User']['short_status'];
>
> no luck,...
>
>
> On Tuesday, October 9, 2012 12:22:57 PM UTC-7, ivnrmc wrote:
>
>> $user['User']['short_status'] = $this->data['User']['value'];
>>
>>
>>
>> 2012/10/9 Chris 
>>
>>> hi guys,... I'm in cake 1.3,... please help,...
>>> I can't read form value from inplace editor in a controller,... any
>>> other approch,...?
>>>
>>>  $user['User']['short_status'] = $this->params['form']['value']**;
>>>
>>>   $this->User->save($user);
>>>   echo $user['User']['short_status'];
>>>   die();
>>>
>>> thanks in advance
>>>
>>>  --
>>> Like Us on FaceBook 
>>> https://www.facebook.com/**CakePHP<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 email to cake...@googlegroups.com.
>>> To unsubscribe from this group, send email to cake-php+u...@**
>>> googlegroups.com.
>>>
>>> Visit this group at 
>>> http://groups.google.com/**group/cake-php?hl=en<http://groups.google.com/group/cake-php?hl=en>
>>> .
>>>
>>>
>>>
>>
>>
>>
>> --
>> *Ivan Rimac***
>> mail: ivn...@gmail.com
>> *tel: +385 95 555 99 66*
>> *http://ivanrimac.com*
>>
>>   --
> 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 email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: form value in cake 1.3

2012-10-09 Thread Ivan Rimac
$user['User']['short_status'] = $this->data['User']['value'];



2012/10/9 Chris 

> hi guys,... I'm in cake 1.3,... please help,...
> I can't read form value from inplace editor in a controller,... any other
> approch,...?
>
>  $user['User']['short_status'] = $this->params['form']['value'];
>
>   $this->User->save($user);
>   echo $user['User']['short_status'];
>   die();
>
> thanks in advance
>
>  --
> 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 email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Google maps and CakePHP

2012-10-09 Thread Ivan Rimac
It gets little more complicated besides proving that someone is a real
person, in fact we need to be certain that it is indeed this person that he
is saying it is, it should be safer than regular emails, with that I cannot
know who is that person, anyone can make email account.



2012/10/9 thatsgreat2345 

> I recommend using some sort of phone verification. Charging people as
> means of verification will deter a lot of people because you're making them
> get their credit card out for a free service which making them get their
> credit card out is a tough matter.
> I do not see what is wrong with just a simple email verification, and
> maybe a captcha to prove someone is real.
>
>
> On Tuesday, October 9, 2012 6:04:16 AM UTC-7, ivnrmc wrote:
>>
>> Hello,
>>
>> This is not strictly cakephp question, more off topic, but i could use a
>> suggestion from you guys.
>>
>> I have a question about Google maps pricing. I have read and understood
>> the service agreements for part where Google maps API is gree. But, we are
>> building website project (based on cakephp) where we would like to verify
>> user's credentials and all of his data by offering him to pay very small
>> amount of money (1$) and after verification user (and getting his data from
>> payment info) we would like to give him back the money, we want for our
>> service to be free. I think this is a good way to legitimate users and
>> making the whole service safer and better to use.
>>
>> My question is, is Google going to let us do something like that, is it
>> possible?
>>
>> Or could you suggest me some other form of verification of a user?
>>
>>
>> Thanks in advance for answer,
>> Ivan
>>
>  --
> 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 email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: saving data in cake 1.3

2012-10-06 Thread Ivan Rimac
and where was the problem?



2012/10/6 Chris 

> THE PROBLEM IS SOLVED :)
>
>
> On Friday, October 5, 2012 10:58:51 PM UTC-7, Chris wrote:
>>
>> hi guys,...
>> I can't save data in database with cake 1.3,... (it's working on 1.2)
>> I'm on upload photos project, what am I doing wrong...??? please
>> help...
>>
>>  here is my function:
>>
>>   function upload()
>>   {
>> $this->authorize();
>>
>> $user = $this->User->findById($this->**user['id']);
>>
>>   $secret = $this->generateRandomString(**20);
>>   $name = str_replace(array('.jpg', '.jpeg', '.JPG', '.JPEG', '.png',
>> '.PNG'), '', $this->params['form']['**Filename']);
>>
>>$this->Photo->create();
>>   if($this->Photo->save(array('**Photo' => array('name' => $name,
>> 'user_id' => $this->user['id'], 'secret' => $secret, 'hidden' => 0,
>> 'privacy' => array_search($_GET['privacy'], Configure::read('Site.privacy'
>> **))
>>   {
>> .. and the rest of a code..
>>
>> thank you in advance
>> chris
>>
>>
>>
>>
>>  --
> Like Us on FacekBook 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 email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
Like Us on FacekBook 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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: data saving in cake 1.3

2012-10-05 Thread Ivan Rimac
>> you trying to do, but you should clean and simplify all of this.
>>
>> 2012/10/5 Chris 
>>
>>> hi guys,...
>>> I can't save data in database,... I'm on cake 1.3 what am I doing
>>> wrong...? can anyone help please,?
>>> thanks in advance
>>>
>>>
>>>   $this->Photo->create();
>>>   if($this->Photo->save(array('**Photo' => array('name' => $name,
>>> 'user_id' => $this->user['id'], 'secret' => $secret, 'hidden' => 0,
>>> 'privacy' => array_search($_GET['privacy'], Configure::read('Site.privacy'
>>> **))
>>>   {
>>> $this->User->query('UPDATE fociki_users' .
>>> ' SET photos = photos + 1' .
>>> ', last_public_photo = (SELECT created FROM fociki_photos WHERE
>>> user_id = ' . $this->user['id'] . ' AND fociki_photos.privacy <= ' .
>>> array_search('public', Configure::read('Site.privacy'**)) .' ORDER BY
>>> created DESC LIMIT 1)' .
>>> ', last_friend_photo = (SELECT created FROM fociki_photos WHERE
>>> user_id = ' . $this->user['id'] . ' AND fociki_photos.privacy <= ' .
>>> array_search('friend', Configure::read('Site.privacy'**)) .' ORDER BY
>>> created DESC LIMIT 1)' .
>>> ' WHERE id = ' . $this->user['id']);
>>>   }
>>>
>>>  --
>>> Like Us on FacekBook 
>>> https://www.facebook.com/**CakePHP<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 email to cake...@googlegroups.com.
>>> To unsubscribe from this group, send email to cake-php+u...@**
>>> googlegroups.com.
>>>
>>> Visit this group at 
>>> http://groups.google.com/**group/cake-php?hl=en<http://groups.google.com/group/cake-php?hl=en>
>>> .
>>>
>>>
>>>
>>
>>
>>
>> --
>> *Ivan Rimac***
>> mail: ivn...@gmail.com
>> *tel: +385 95 555 99 66*
>> *http://ivanrimac.com*
>>
>>  --
> Like Us on FacekBook 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 email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
Like Us on FacekBook 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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: data saving in cake 1.3

2012-10-05 Thread Ivan Rimac
what are your error? this code is on very big mess. I don't know what are
you trying to do, but you should clean and simplify all of this.

2012/10/5 Chris 

> hi guys,...
> I can't save data in database,... I'm on cake 1.3 what am I doing
> wrong...? can anyone help please,?
> thanks in advance
>
>
>   $this->Photo->create();
>   if($this->Photo->save(array('Photo' => array('name' => $name,
> 'user_id' => $this->user['id'], 'secret' => $secret, 'hidden' => 0,
> 'privacy' => array_search($_GET['privacy'],
> Configure::read('Site.privacy'))
>   {
> $this->User->query('UPDATE fociki_users' .
> ' SET photos = photos + 1' .
> ', last_public_photo = (SELECT created FROM fociki_photos WHERE
> user_id = ' . $this->user['id'] . ' AND fociki_photos.privacy <= ' .
> array_search('public', Configure::read('Site.privacy')) .' ORDER BY created
> DESC LIMIT 1)' .
> ', last_friend_photo = (SELECT created FROM fociki_photos WHERE
> user_id = ' . $this->user['id'] . ' AND fociki_photos.privacy <= ' .
> array_search('friend', Configure::read('Site.privacy')) .' ORDER BY created
> DESC LIMIT 1)' .
> ' WHERE id = ' . $this->user['id']);
>   }
>
>  --
> Like Us on FacekBook 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 email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
Like Us on FacekBook 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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: CakePHP 2.x implement edit form in ajax in a popup

2012-10-03 Thread Ivan Rimac
You can find solution inside code down here, just read it carefuly. I used
fancybox, but easily you can use some other functions from jquery. I
recommend you fancybox for this kind of action.





Form->create('Feedback', array('id' => 'feedback-form',
'controller' => 'feedbacks', 'action' => 'add'));?>

Form->input('rate', array('type' => 'hidden', 'id' =>
'rate-value')); ?>

Form->input('ride_id', array('type' => 'hidden', 'value'
=> $ride['Ride']['id'])); ?>
Form->input('comment', array('type' => 'textfield')); ?>
Form->end(__('Submit', true));?>



$(document).ready(function() {
$(".rize-feedback").fancybox({
fitToView : false,
width : '70%',
height : '70%',
autoSize : true,
closeClick : false,
openEffect : 'none',
closeEffect : 'none'
});
$('.star').raty({
  cancel : true,
  target : '#rate-value',
  targetKeep : true,
  targetType : 'number'
});
 $("#feedback-form").submit(function(){
$.fancybox.showLoading();
$.ajax({
  type: "POST",
  url: $(this).attr('action'),
  data: $("#feedback-form").serialize(),
}).done(function( msg ) {
   $.fancybox.hideLoading();
   json = jQuery.parseJSON(msg);
   $('#feedback-form').hide();
   $('#feedback-form-div h2').text(json.Success.title);
   $('#feedback-form-div').append('<p class="pop-success">' +
json.Success.message + '</p>');
});
return false;
})
})





-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
Like Us on FacekBook 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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: i18n - no flags

2012-10-02 Thread Ivan Rimac
hey patrick, i need something like this on cakephp 1.3. i would like to
extract the pot file from the views folder. The cook book dont say much
about things what to do next, how exactly do I change the language on the
website?
Of course, first I need to edit the po files, but if I have multiple
domains, how exactly do I force cakephp to use certain .po file with
translation? If you can give any sort of advice or guidance, I would be
grateful.



2012/10/2 Dr. Drijk 

> Update and case closed.
>
> The problem could be in the latest version of cakePHP.(v2.3).
> After reinstalling the previous version, everthing went well.
>
> but hej, thank you for searching.
>
> Patrick.
>
> Op dinsdag 25 september 2012 16:46:03 UTC+2 schreef Dr. Drijk het volgende:
>
>> maybe a silly question, but anyway.
>>
>> I'm using the i18n plugin, copied into the plugin folder.
>> I use an element which creates the heading for each page. In this element
>> i use the switchFlag function of the pluging:
>>
>> "> $this->Html->image('printer-**icoon.gif',array('alt'=>'print
>> de pagina', 'onclick'=>'window.print()', 'onmouseover'=>'this.style.**border
>> = "1px Solid #EEDDFF 1px"', 'onmouseout'=>'this.style.**border ="0px
>> Solid #EEDDFF"')); ?>
>> I18n->flagSwitcher(**array('class' => 'languages',
>> 'id' => 'language-switcher')); ?>"
>>
>> The created 'flag' functions quite well, no problem with that, but the
>> pictures themself aren't shown.
>> the html-code generated looks like this
>> 
>>
>> I don't know it this is related to it. since I introduced the flags even
>> the results of DebugKit aren't rendered wel.
>> All te results are shown at the end of the page and not as a toobar.
>>
>> any idea how to solve this?
>>
>> Patrick
>>
>>
>>  --
> Like Us on FacekBook 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 email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
Like Us on FacekBook 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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: dateTime in edit view

2012-10-01 Thread Ivan Rimac
http://book.cakephp.org/1.3/en/view/1390/Automagic-Form-Elements

You should really consider to go through this book for 1.3 ...

2012/10/2 Chris 

> hi guys,...
> I can't bring back record of dateTime back to my edit.ctp
> what I have is in there:
>
> (this is from 1.2 pre-Beta version)
> Form->dateTime('birthday', 'DMY', 'NONE', time(),
> array('minYear' => 1910, 'maxYear' => (date('Y') - 16)), false) ?>
>
> how can I do this in 1.3...  ??
>
> thanks
>
>  --
> Like Us on FacekBook 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 email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
Like Us on FacekBook 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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: renderElement in 1.3

2012-10-01 Thread Ivan Rimac
I just saw my own mistake, ofc it goes without echo and php tags :) just
$this->render();

sent from my Samsung Galaxy S

Ivan Rimac
mail: ivn...@gmail.com
mob: +385 95 555 9966
Dana 1.10.2012. 10:41 "Ivan Rimac"  je napisao/la:

> didnt try but it should work from controllers like this  $this->render('../elements/**videos/videos_ads1', array('full' => true))
> ?>
>
> 2012/10/1 Chris 
>
>> hi Ivan,...
>> I need to render it from another directories,... like videos, groups,
>> etc,...
>> will this work... ?? or should I put videos_ad1 content into elements
>> view... ??
>> render('elements/**videos/videos_ads1', array('full'
>> => true)) ?>
>>
>>
>> On Monday, October 1, 2012 1:00:30 AM UTC-7, ivnrmc wrote:
>>
>>>
>>>1. // Render the element in /views/elements/ajaxreturn.ctp
>>>2. $this->render('/elements/**ajaxreturn');
>>>
>>>
>>> 2012/10/1 Chris 
>>>
>>>> hi guys,...
>>>> I had renderElement in 1.2 pre-Beta version,... now moving script to
>>>> 1.3 and it seems to me that it's not supported in 1.3
>>>>
>>>> in a vew I have:
>>>> renderElement('../**videos/videos_ads1',
>>>> array('full' => true)) ?>
>>>> which was bringing up the page from ../views/video/video_ads1.ctp
>>>>
>>>> how can I do this in 1.3 ...?
>>>>
>>>> thanks
>>>> Chris
>>>>
>>>> --
>>>> Like Us on FacekBook 
>>>> https://www.facebook.com/**CakePHP<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 email to cake...@googlegroups.com.
>>>> To unsubscribe from this group, send email to cake-php+u...@**
>>>> googlegroups.com.
>>>>
>>>> Visit this group at 
>>>> http://groups.google.com/**group/cake-php?hl=en<http://groups.google.com/group/cake-php?hl=en>
>>>> .
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> *Ivan Rimac***
>>> mail: ivn...@gmail.com
>>> *tel: +385 95 555 99 66*
>>> *http://ivanrimac.com*
>>>
>>>   --
>> Like Us on FacekBook 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 email to cake-php@googlegroups.com.
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com.
>> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>>
>>
>>
>
>
>
> --
> *Ivan Rimac***
> mail: ivn...@gmail.com
> *tel: +385 95 555 99 66*
> *http://ivanrimac.com*
>
>

-- 
Like Us on FacekBook 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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: renderElement in 1.3

2012-10-01 Thread Ivan Rimac
didnt try but it should work from controllers like this render('../elements/**videos/videos_ads1', array('full' => true)) ?>

2012/10/1 Chris 

> hi Ivan,...
> I need to render it from another directories,... like videos, groups,
> etc,...
> will this work... ?? or should I put videos_ad1 content into elements
> view... ??
> render('elements/**videos/videos_ads1', array('full' =>
> true)) ?>
>
>
> On Monday, October 1, 2012 1:00:30 AM UTC-7, ivnrmc wrote:
>
>>
>>1. // Render the element in /views/elements/ajaxreturn.ctp
>>2. $this->render('/elements/**ajaxreturn');
>>
>>
>> 2012/10/1 Chris 
>>
>>> hi guys,...
>>> I had renderElement in 1.2 pre-Beta version,... now moving script to 1.3
>>> and it seems to me that it's not supported in 1.3
>>>
>>> in a vew I have:
>>> renderElement('../**videos/videos_ads1', array('full'
>>> => true)) ?>
>>> which was bringing up the page from ../views/video/video_ads1.ctp
>>>
>>> how can I do this in 1.3 ...?
>>>
>>> thanks
>>> Chris
>>>
>>> --
>>> Like Us on FacekBook 
>>> https://www.facebook.com/**CakePHP<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 email to cake...@googlegroups.com.
>>> To unsubscribe from this group, send email to cake-php+u...@**
>>> googlegroups.com.
>>>
>>> Visit this group at 
>>> http://groups.google.com/**group/cake-php?hl=en<http://groups.google.com/group/cake-php?hl=en>
>>> .
>>>
>>>
>>>
>>
>>
>>
>> --
>> *Ivan Rimac***
>> mail: ivn...@gmail.com
>> *tel: +385 95 555 99 66*
>> *http://ivanrimac.com*
>>
>>   --
> Like Us on FacekBook 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 email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
Like Us on FacekBook 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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: renderElement in 1.3

2012-10-01 Thread Ivan Rimac
   1. // Render the element in /views/elements/ajaxreturn.ctp
   2. $this->render('/elements/ajaxreturn');


2012/10/1 Chris 

> hi guys,...
> I had renderElement in 1.2 pre-Beta version,... now moving script to 1.3
> and it seems to me that it's not supported in 1.3
>
> in a vew I have:
> renderElement('../videos/videos_ads1', array('full' =>
> true)) ?>
> which was bringing up the page from ../views/video/video_ads1.ctp
>
> how can I do this in 1.3 ...?
>
> thanks
> Chris
>
> --
> Like Us on FacekBook 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 email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
Like Us on FacekBook 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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: photo_show.php helper

2012-09-30 Thread Ivan Rimac
okay, maybe you need to put this content down here into /app_helper.php and
call it from the view like: Html->show_path(); ?>

 function show_path($photo, $size, $params = array())
  {
if(empty($photo))
{
  return '';
}
else
{
  $id = 0;
  $secret = '';

  if(array_key_exists('Photo', $photo))
  {
$id = $photo['Photo']['id'];
$secret = $photo['Photo']['secret'];
  }


  elseif(array_key_exists('User', $photo))
  {
$id = $photo['User']['photo_id'];
$secret = $photo['User']['photo_secret'];
  }

  return (array_key_exists('full', $params) ? FULL_BASE_URL : '') .
$this->webroot . 'photos/' . $size . '/' . $id . '-' . $secret . '.jpg' .
(array_key_exists('updated', $_GET) ? '?' . time() : '');
}


to

2012/9/30 Chris 

> hi MaJerle,... now I'm reading helper ,... BUT,... can't read
> FULL_BASE_URL ,... in a browser I see  alt="" /> <http://www.hamayk.com/photos/index/admin>
>
>
>   return (array_key_exists('full', $params) ? FULL_BASE_URL : '') .
> $this->webroot . 'photos/' . $size . '/' . $id . '-' . $secret . '.jpg' .
> (array_key_exists('updated', $_GET) ? '?' . time() : '');
> }
>
> thanks
>
> On Sunday, September 30, 2012 10:22:21 AM UTC-7, MaJerle.Eu wrote:
>
>> i think it should be $this->PhotoShow or $PhotoShow..i'm not sure :)
>> --
>> Lep pozdrav, Tilen Majerle
>> http://majerle.eu
>>
>>
>>
>> 2012/9/30 Ivan Rimac 
>>
>>> Html->link($this->**photoShow->thumb($user_obj),
>>> '/photos/index/' . $user_obj['User']['username'], false, false, false) ?>
>>>
>>> maybe you are missing $this
>>>
>>>
>>>
>>> 2012/9/30 Chris 
>>>
>>>> hi guys, I have a photo_show helper which works on 1.2 pre Beta
>>>> version,...
>>>> now I'm trying to migrate to 1.3 and I can't bring it up in a view:
>>>>
>>>>link($photoShow->thumb(**$user_obj),
>>>> '/photos/index/' . $user_obj['User']['username'], false, false, false) ?>
>>>>
>>>> what am I doing wrong...???
>>>> thanks
>>>>
>>>>
>>>>  --
>>>> Like Us on FacekBook 
>>>> https://www.facebook.com/**CakePHP<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 email to cake...@googlegroups.com.
>>>> To unsubscribe from this group, send email to cake-php+u...@**
>>>> googlegroups.com.
>>>>
>>>> Visit this group at 
>>>> http://groups.google.com/**group/cake-php?hl=en<http://groups.google.com/group/cake-php?hl=en>
>>>> .
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> *Ivan Rimac***
>>> mail: ivn...@gmail.com
>>> *tel: +385 95 555 99 66*
>>> *http://ivanrimac.com*
>>>
>>>  --
>>> Like Us on FacekBook 
>>> https://www.facebook.com/**CakePHP<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 email to cake...@googlegroups.com.
>>> To unsubscribe from this group, send email to cake-php+u...@**
>>> googlegroups.com.
>>>
>>> Visit this group at 
>>> http://groups.google.com/**group/cake-php?hl=en<http://groups.google.com/group/cake-php?hl=en>
>>> .
>>>
>>>
>>>
>>
>>  --
> Like Us on FacekBook 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 email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
Like Us on FacekBook 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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: photo_show.php helper

2012-09-30 Thread Ivan Rimac
Html->link($this->photoShow->thumb($user_obj),
'/photos/index/' . $user_obj['User']['username'], false, false, false) ?>

maybe you are missing $this



2012/9/30 Chris 

> hi guys, I have a photo_show helper which works on 1.2 pre Beta
> version,...
> now I'm trying to migrate to 1.3 and I can't bring it up in a view:
>
>link($photoShow->thumb($user_obj), '/photos/index/'
> . $user_obj['User']['username'], false, false, false) ?>
>
> what am I doing wrong...???
> thanks
>
>
>  --
> Like Us on FacekBook 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 email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
Like Us on FacekBook 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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: how to remove label from username and password

2012-09-28 Thread Ivan Rimac
you can use now placeholder => username, it looks better :-)


2012/9/29 Chris 

> thanks ivnrmc,... it works
> I have also add username and password into the fields
>
> , array('label' => false, 'value' => 'username')
> , array('label' => false, 'value' => 'password')
>
> but password show *
>
> On Friday, September 28, 2012 5:48:51 PM UTC-7, ivnrmc wrote:
>
>> After name of the input...
>>
>> Html->input('username', array('label' => false)); ?>
>>
>> sent from my Samsung Galaxy S
>>
>> Ivan Rimac
>> mail: ivn...@gmail.com
>>
>> mob: +385 95 555 9966
>>
>> Dana 29.9.2012. 02:31 "Chris"  je napisao/la:
>>
>>> Hi guys,...
>>> how can I remove label from username and password from the "Form",... to
>>> NOT show up from browser...
>>>
>>> Username Password*
>>>
>>>
>>>  
>>> Form->input('username')**; ?>
>>> 
>>>
>>> 
>>> Form->input('password')**; ?>
>>>  
>>>
>>> thanks
>>>
>>>  --
>>> Like Us on FacekBook 
>>> https://www.facebook.com/**CakePHP<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 email to cake...@googlegroups.com.
>>> To unsubscribe from this group, send email to cake-php+u...@**
>>> googlegroups.com.
>>>
>>> Visit this group at 
>>> http://groups.google.com/**group/cake-php?hl=en<http://groups.google.com/group/cake-php?hl=en>
>>> .
>>>
>>>
>>>
>>  --
> Like Us on FacekBook 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 email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
Like Us on FacekBook 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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: how to remove label from username and password

2012-09-28 Thread Ivan Rimac
After name of the input...

Html->input('username', array('label' => false)); ?>

sent from my Samsung Galaxy S

Ivan Rimac
mail: ivn...@gmail.com
mob: +385 95 555 9966
Dana 29.9.2012. 02:31 "Chris"  je napisao/la:

> Hi guys,...
> how can I remove label from username and password from the "Form",... to
> NOT show up from browser...
>
> Username Password*
>
>
> 
> Form->input('username'); ?>
> 
>
> 
> Form->input('password'); ?>
> 
>
> thanks
>
>  --
> Like Us on FacekBook 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 email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>

-- 
Like Us on FacekBook 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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Is this a mod_rewrite issue?

2012-09-27 Thread Ivan Rimac
I think it is rewriting problem, try something like this:
http://docs.joomla.org/How_to_check_if_mod_rewrite_is_enabled_on_your_server


If it is not, there's your problem :-)
and if it is on, then you should google around for setting up .htaccess
files and in what way to modify them.




2012/9/27 Paul Willis 

> Okay, thanks for that. Unfortunately it doesn't fix my issue.
>
> Your setup is slightly different as you have your domain pointing to the
> root folder of your cake folder. That is usually how I have mine set up
> when I am controlling the server. However in this case on someone else's
> server I'm in a sub folder but it is accessed by users via the full path
> like this…
>
> domain.com/oursite/caketest
>
> I've decided to take the long route and put in a request to the customer
> to ask the webhost for full details of the setup, what AllowOverride is set
> to and hopefully a copy of the apache conf file so I can see what exactly
> is going on.
>
> Cheers
>
> Paul
>
>
> On 27 Sep 2012, at 17:02, Ivan Rimac  wrote:
>
> Okay, this is my structure:
>
> domain.com/.htaccess
>
> 
>RewriteEngine on
>RewriteBase /
>RewriteRule^$ app/webroot/[L]
>RewriteRule(.*) app/webroot/$1 [L]
> 
>
> domain.com/app/.htaccess
> 
> RewriteEngine on
> RewriteBase /app/
> RewriteRule^$webroot/[L]
> RewriteRule(.*) webroot/$1[L]
>  
>
> domain.com/app/webroot/.htaccess
> 
> RewriteEngine On
> RewriteBase /app/webroot/
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
> 
>
> And it works fine for me. I have another site running cakephp as subdomain
> like sub.domain.com and it points to domain.com/subdomainfolder, where i
> cakephp app.
> There I have exactly the sam structure of .htaccess files, and it works
> with no problems.
>
>
>
> 2012/9/27 Paul Willis 
>
>> I tried editing my .htaccess in domain.com/oursite/caketest/ but it made
>> no difference.
>>
>> Are your other two .htaccess files set to the default without RewriteBase
>> being set?
>>
>> Paul
>>
>>
>> On 27 Sep 2012, at 16:38, Ivan Rimac  wrote:
>>
>> > I had similar issue.
>> >
>> > You can try enter this into app/.htaccess file
>> >
>> > 
>> >RewriteEngine on
>> >RewriteBase /
>> >RewriteRule^$ app/webroot/[L]
>> >RewriteRule(.*) app/webroot/$1 [L]
>> > 
>> >
>> > And check if there is on your Auth component allowed to display home
>> page.
>> >
>> > Hope this helps,
>> > Cheers
>> >
>> >
>> >
>> > 2012/9/27 Paul Willis 
>> > Hi
>> >
>> > I can't get a brand new CakePHP installation working on a customer's
>> server. The details of what is going on are below, including everything
>> I've tried, but my conclusion is that it is probably something as simple as
>> AllowOverride isn't set to 'all'. The guys who run the server only take
>> instructions from the customer via a ticket system (fair enough) so it is a
>> slow operation to get changes made or details of configs out of them etc.
>> I'd like to have some facts to approach them with rather than go fishing.
>> Is there something I can do to test this?
>> >
>> > The details….
>> >
>> > We are creating a mini site within a subfolder on a customer's
>> Apache/2.2.16 server. Their main website runs on...
>> >
>> > domain.com/
>> >
>> > We have been given access to a subfolder...
>> >
>> > domain.com/oursite/
>> >
>> > I dropped a basic phpinfo() index.php into the subfolder, surfed in and
>> it displays fine. PHP 5.3.3 is installed and processes the page.
>> >
>> > phpinfo() suggests that the actual path to our folder is…
>> >
>> > /var/www/oursite
>> >
>> > I then dropped a cake php installation into the subfolder all contained
>> in a directory called 'caketest'. This is basically an unstuffed download
>> of CakePHP 2.2.2 but when I go in my browser to...
>> >
>> > domain.com/oursite/caketest/
>> >
>> >
>> >
>> > If I go to...
>> >
>> > domain.com/oursite/caketest/app/webroot/
>> >
>> > I see a Cake error page (with no CSS)…
>> >
>> > Missing Method in AppController
>

Re: Is this a mod_rewrite issue?

2012-09-27 Thread Ivan Rimac
Okay, this is my structure:

domain.com/.htaccess


   RewriteEngine on
   RewriteBase /
   RewriteRule^$ app/webroot/[L]
   RewriteRule(.*) app/webroot/$1 [L]


domain.com/app/.htaccess

RewriteEngine on
RewriteBase /app/
RewriteRule^$webroot/[L]
RewriteRule(.*) webroot/$1[L]
 

domain.com/app/webroot/.htaccess

RewriteEngine On
RewriteBase /app/webroot/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]


And it works fine for me. I have another site running cakephp as subdomain
like sub.domain.com and it points to domain.com/subdomainfolder, where i
cakephp app.
There I have exactly the sam structure of .htaccess files, and it works
with no problems.



2012/9/27 Paul Willis 

> I tried editing my .htaccess in domain.com/oursite/caketest/ but it made
> no difference.
>
> Are your other two .htaccess files set to the default without RewriteBase
> being set?
>
> Paul
>
>
> On 27 Sep 2012, at 16:38, Ivan Rimac  wrote:
>
> > I had similar issue.
> >
> > You can try enter this into app/.htaccess file
> >
> > 
> >RewriteEngine on
> >RewriteBase /
> >RewriteRule^$ app/webroot/[L]
> >RewriteRule(.*) app/webroot/$1 [L]
> > 
> >
> > And check if there is on your Auth component allowed to display home
> page.
> >
> > Hope this helps,
> > Cheers
> >
> >
> >
> > 2012/9/27 Paul Willis 
> > Hi
> >
> > I can't get a brand new CakePHP installation working on a customer's
> server. The details of what is going on are below, including everything
> I've tried, but my conclusion is that it is probably something as simple as
> AllowOverride isn't set to 'all'. The guys who run the server only take
> instructions from the customer via a ticket system (fair enough) so it is a
> slow operation to get changes made or details of configs out of them etc.
> I'd like to have some facts to approach them with rather than go fishing.
> Is there something I can do to test this?
> >
> > The details….
> >
> > We are creating a mini site within a subfolder on a customer's
> Apache/2.2.16 server. Their main website runs on...
> >
> > domain.com/
> >
> > We have been given access to a subfolder...
> >
> > domain.com/oursite/
> >
> > I dropped a basic phpinfo() index.php into the subfolder, surfed in and
> it displays fine. PHP 5.3.3 is installed and processes the page.
> >
> > phpinfo() suggests that the actual path to our folder is…
> >
> > /var/www/oursite
> >
> > I then dropped a cake php installation into the subfolder all contained
> in a directory called 'caketest'. This is basically an unstuffed download
> of CakePHP 2.2.2 but when I go in my browser to...
> >
> > domain.com/oursite/caketest/
> >
> >
> >
> > If I go to...
> >
> > domain.com/oursite/caketest/app/webroot/
> >
> > I see a Cake error page (with no CSS)…
> >
> > Missing Method in AppController
> > Error: The action webroot is not defined in controller
> AppController
> >
> > Following the advanced installation suggestions on
> http://book.cakephp.org/2.0/en/installation/advanced-installation.html
> >
> > I've tried uncommenting the line…
> >
> > define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib');
> >
> > ..in app/webroot/index.php
> >
> > I've tried defining the paths manually in app/webroot/index.php…
> >
> > define('ROOT', DS . 'var' . DS . 'www' . DS . 'oursite');
> > define('APP_DIR', 'caketest');
> > define('CAKE_CORE_INCLUDE_PATH', DS . 'var' . DS . 'www' . DS .
> 'oursite' . DS . 'caketest' . DS . 'lib');
> >
> > I've tried adding…
> >
> > RewriteBase /var/www/oursite/caketest
> >
> > ...to each of the three .htaccess files with no change in the results.
> >
> > Nothing makes any difference to my results so any suggestions gratefully
> received
> >
> > Cheers
> >
> > Paul
> >
> > --
> > Like Us on FacekBook 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 email to cake-php@googlegr

Re: Is this a mod_rewrite issue?

2012-09-27 Thread Ivan Rimac
I had similar issue.

You can try enter this into app/.htaccess file


   RewriteEngine on
   RewriteBase /
   RewriteRule^$ app/webroot/[L]
   RewriteRule(.*) app/webroot/$1 [L]


And check if there is on your Auth component allowed to display home page.

Hope this helps,
Cheers



2012/9/27 Paul Willis 

> Hi
>
> I can't get a brand new CakePHP installation working on a customer's
> server. The details of what is going on are below, including everything
> I've tried, but my conclusion is that it is probably something as simple as
> AllowOverride isn't set to 'all'. The guys who run the server only take
> instructions from the customer via a ticket system (fair enough) so it is a
> slow operation to get changes made or details of configs out of them etc.
> I'd like to have some facts to approach them with rather than go fishing.
> Is there something I can do to test this?
>
> The details….
>
> We are creating a mini site within a subfolder on a customer's
> Apache/2.2.16 server. Their main website runs on...
>
> domain.com/
>
> We have been given access to a subfolder...
>
> domain.com/oursite/
>
> I dropped a basic phpinfo() index.php into the subfolder, surfed in and it
> displays fine. PHP 5.3.3 is installed and processes the page.
>
> phpinfo() suggests that the actual path to our folder is…
>
> /var/www/oursite
>
> I then dropped a cake php installation into the subfolder all contained in
> a directory called 'caketest'. This is basically an unstuffed download of
> CakePHP 2.2.2 but when I go in my browser to...
>
> domain.com/oursite/caketest/
>
> I get the main website's 'page not found'
>
> If I go to...
>
> domain.com/oursite/caketest/app/webroot/
>
> I see a Cake error page (with no CSS)…
>
> Missing Method in AppController
> Error: The action webroot is not defined in controller
> AppController
>
> Following the advanced installation suggestions on
> http://book.cakephp.org/2.0/en/installation/advanced-installation.html
>
> I've tried uncommenting the line…
>
> define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib');
>
> ..in app/webroot/index.php
>
> I've tried defining the paths manually in app/webroot/index.php…
>
> define('ROOT', DS . 'var' . DS . 'www' . DS . 'oursite');
> define('APP_DIR', 'caketest');
> define('CAKE_CORE_INCLUDE_PATH', DS . 'var' . DS . 'www' . DS .
> 'oursite' . DS . 'caketest' . DS . 'lib');
>
> I've tried adding…
>
> RewriteBase /var/www/oursite/caketest
>
> ...to each of the three .htaccess files with no change in the results.
>
> Nothing makes any difference to my results so any suggestions gratefully
> received
>
> Cheers
>
> Paul
>
> --
> Like Us on FacekBook 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 email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>


-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
Like Us on FacekBook 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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Problem with paths to files

2012-09-25 Thread Ivan Rimac
Yes, put it in the webroot, img folder or anywhere else in the webroot, and
before displaying sometimes you need to empty the cache from your browser
to display it instantly.


2012/9/25 Maliko V 

> Hello,
>
> the way I did it was to create the img folder in the app/webroot folder.
> Then regardless of where you insert the image i call the image using the
> img tag  like this < img src="/img/name_of_the_file" /> or you can use the
> image function by doing this :  $this->Html->image('name_of_the_file'); ?> . Just make sure that your image
> is stored in app/webroot/img/
>
> Hope this helps
>
> VM
>
> Sent from iPhone smartphone
>
> On 2012-09-24, at 2:16 PM, ShipSank  wrote:
>
> I am having a similar problem.  I just created the '/img' folder but no
> matter what I put for the path in the view file (index.ctp), I cannot get
> the images to display.  They just come out blank (and show the 'alt' text
> instead).
>
> Super frustrating!  :>)
>
> Any ideas?
>
> --
> Like Us on FacekBook 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 email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>
>  --
> Like Us on FacekBook 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 email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
Like Us on FacekBook 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 email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: complex find()

2012-08-28 Thread Ivan Rimac
Looks ok for me, i think if you firing find on Attendance
($this->Attendance->find) You dont need 'Attendance.created', just
'created'. You can try with that.

2012/8/29 rockbust 

> If anyone can point me in the right direction.. It will be much appreciated
>
> I am trying to return a list of User where Attendance.created is between a
> date specified in my form.
> Further Attendance.created needs to be equal or greater than
> attendance_count input from the form.
> Attendance belongsTo User
>
> I have tried this but get sql error Unknown column 'Attendance.created'
>
> function admin_attendance_by_date_range() {
> $this->Attendance->recursive = 0;
> $session_school_id =
> $this->Session->read('Userinfo.currentSchoolid');
>
> $from =
>  $this->data['Attendance']['start_date']['year'] . "-" .
> $this->data['Attendance']['start_date']['month'] . "-" .
> $this->data['Attendance']['start_date']['day'];
> $to =
>  $this->data['Attendance']['end_date']['year'] . "-" .
> $this->data['Attendance']['end_date']['month'] . "-" .
> $this->data['Attendance']['end_date']['day'];
> $cond = array('Attendance.created BETWEEN ? AND ?'
> => array($from, $to),
> 'Attendance.school_id' => $session_school_id);
>
> Robert
>
>
>
>
> --
> View this message in context:
> http://cakephp.1045679.n5.nabble.com/complex-find-tp5710758.html
> Sent from the CakePHP mailing list archive at Nabble.com.
>
> --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>
>


-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: CakePHP Autobaker for v.1.3

2012-08-27 Thread Ivan Rimac
Mac version, is it planned?



2012/8/27 Łukasz Michalczyk 

> Welcome everybody.
> I would like to announce a new CakePHP support application.
> It's called AutoBaker, based on Adobe AIR.
> It has UI for automatic baking projects entities.
> More information on http://autobaker.xaa.pl
> Sorry for my english, I'm from poland.
>
> Thank You.
>
> --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: How can I put my $id in $this->redirect

2012-08-24 Thread Ivan Rimac
OR

$this->redirect('/customers/view/'.$id);

:-)



2012/8/24 Lucas Simon Rodrigues Magalhaes 

>
>1. //$id = $this->request->data['ProductDetail']['customer_id'];
>2.
>
>
> forget this line comment
>
> $id = $this->request->data['ProductDetail']['customer_id'];
>
> Em sexta-feira, 24 de agosto de 2012 15h01min02s UTC-3, Lucas Simon
> Rodrigues Magalhaes escreveu:
>
>> After add the product detail, I wanna redirect to controller customer
>> action view, and my customer id.
>>
>> look;
>>
>> http://pastebin.com/84ZTTq2T
>>
>> Em sexta-feira, 24 de agosto de 2012 14h44min35s UTC-3, ivnrmc escreveu:
>>>
>>> What exctly are you trying to accomplish?
>>> Maybe you can try with $this->redirect($this->**referer());
>>>
>>>
>>> 2012/8/24 Lucas Simon Rodrigues Magalhaes 
>>>
>>>> I doing it:
>>>>
>>>> $this->redirect(array('**controller'=>'customers','**action' =>
>>>> 'view',$id));
>>>>
>>>> but do not work.
>>>>
>>>> Invalid customer
>>>>
>>>> *Error: * The requested address *'cadastros/admin/customers/view'* was
>>>> not found on this server.
>>>>
>>>>  --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "CakePHP" group.
>>>> To post to this group, send email to cake...@googlegroups.com.
>>>> To unsubscribe from this group, send email to
>>>> cake-php+u...@googlegroups.com**.
>>>> Visit this group at 
>>>> http://groups.google.com/**group/cake-php?hl=en-US<http://groups.google.com/group/cake-php?hl=en-US>
>>>> .
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> *Ivan Rimac***
>>> mail: ivn...@gmail.com
>>> *tel: +385 95 555 99 66*
>>> *http://ivanrimac.com*
>>>
>>>   --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: How can I put my $id in $this->redirect

2012-08-24 Thread Ivan Rimac
Maybe you shouldn't pass the id of the customer into the url. Inside
customer controller, maybe you can just set it like this:

$id = $this->Auth->user('id');

And after that, you got the id of the currently logged user. and every time
you redirect to this controller and this action, it will take the
parameters from currently logged user.
Hope this helps.


2012/8/24 Lucas Simon Rodrigues Magalhaes 

> After add the product detail, I wanna redirect to controller customer
> action view, and my customer id.
>
> look;
>
> http://pastebin.com/84ZTTq2T
>
> Em sexta-feira, 24 de agosto de 2012 14h44min35s UTC-3, ivnrmc escreveu:
>>
>> What exctly are you trying to accomplish?
>> Maybe you can try with $this->redirect($this->**referer());
>>
>>
>> 2012/8/24 Lucas Simon Rodrigues Magalhaes 
>>
>>> I doing it:
>>>
>>> $this->redirect(array('**controller'=>'customers','**action' =>
>>> 'view',$id));
>>>
>>> but do not work.
>>>
>>> Invalid customer
>>>
>>> *Error: * The requested address *'cadastros/admin/customers/view'* was
>>> not found on this server.
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "CakePHP" group.
>>> To post to this group, send email to cake...@googlegroups.com.
>>> To unsubscribe from this group, send email to cake-php+u...@**
>>> googlegroups.com.
>>>
>>> Visit this group at 
>>> http://groups.google.com/**group/cake-php?hl=en-US<http://groups.google.com/group/cake-php?hl=en-US>
>>> .
>>>
>>>
>>>
>>
>>
>>
>> --
>> *Ivan Rimac***
>> mail: ivn...@gmail.com
>> *tel: +385 95 555 99 66*
>> *http://ivanrimac.com*
>>
>>   --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: How can I put my $id in $this->redirect

2012-08-24 Thread Ivan Rimac
What exctly are you trying to accomplish?
Maybe you can try with $this->redirect($this->referer());


2012/8/24 Lucas Simon Rodrigues Magalhaes 

> I doing it:
>
> $this->redirect(array('controller'=>'customers','action' => 'view',$id));
>
> but do not work.
>
> Invalid customer
>
> *Error: * The requested address *'cadastros/admin/customers/view'* was
> not found on this server.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: Urgent, we need a CakePHP developer.

2012-08-24 Thread Ivan Rimac
Hello,

I am interested for work, part time thing. Working with cakePHP about year
from now on, so I would like to try bid for a job.

CakePHP apps:
http://shareurride.com (project near completion)
http://angrylemmings.com

Other web solutions that I made:
http://ivanrimac.com/portfolio/

Let me know if I stand a chance to get the job.

With regards,
Ivan

sent from my Samsung Galaxy S

Ivan Rimac
mail: ivn...@gmail.com
mob: +385 95 555 9966
Dana 24.8.2012. 12:41 "Saiful Siddique"  je
napisao/la:

> We are a Tel Co based software development firm. We need a php coder who
> understand CakePHP.
>
> Thanks
> Shimul
> Mark Tech.
> Bangla Motor, Dhaka.
> 01949066466
>
> --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: How to set my table's Storage Engine using CakeSchema?

2012-08-23 Thread Ivan Rimac
Did not think you would not figure out yourself :)

sent from my Samsung Galaxy S

Ivan Rimac
mail: ivn...@gmail.com
mob: +385 95 555 9966
Dana 23.8.2012. 19:38 "andrewperk"  je napisao/la:

> I figured out. Just in case someone else wants to know this:
>
> 'tableParameters' => array('engine' => 'MEMORY')
>
> On Thursday, August 23, 2012 10:14:50 AM UTC-7, andrewperk wrote:
>>
>> Hello,
>>
>> I'd like to be able to ensure that the table CakeSchema create's is a
>> memory heap. How can I set the storage engine for a table created using
>> CakeSchema?
>>
>> I tried something like this:
>>
>> public $sucker_log = array(
>> 'id'=>array('type'=>'integer', 'null'=>false, 'default'=>null,
>> 'key'=>'primary', 'length'=>11),
>> 'ip'=>array('type'=>'string', 'null'=>true, 'default'=>null),
>> 'storage'=>array('engine'=>'**memory'),
>> 'indexes'=>array('PRIMARY'=>**array('column'=>'id', 'unique'=>1))
>> );
>>
>> But my table is still InnoDB. I just guessed at what it could be, I
>> didn't see anything in the documentation.
>>
>> Note: not all tables in the DB are memory heaps. The other tables are
>> InnoDB.
>>
>> Thanks,
>>
>> Andrew
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: Looking for work?

2012-08-23 Thread Ivan Rimac
Hello,

I am interested for work, part time thing. Working with cakePHP about year
from now on, so I would like to try bid for a job.

CakePHP apps:
http://shareurride.com (project near completion)
http://angrylemmings.com

Other web solutions that I made:
http://ivanrimac.com/portfolio/ <http://www.ivanrimac.com/portfolio/>

Let me know if I stand a chance to get the job.

With regards,
Ivan




012/8/23 Jeremy Burns 

> A good friend of mine is looking for a couple of developers. One is full
> time, based in the City (London), PHP/Magento/MySQL paying about £50k. The
> other is PHP/MySQL working part time short term on a new project that is
> nearing completion; doesn't pay much but presents an opportunity to get
> into a new business if you impress. Let me know if you are interested and I
> will exchange details.
>
> --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: Cake PHP User Management Plugin Eagle

2012-07-28 Thread Ivan Suzen


Hey Steve,

If you made this plugin and it is real then can you please tell us the 
exact date you launched this plugin and show us the proof for that ?

Thanks,

Ivan

On Saturday, July 28, 2012 2:09:47 AM UTC+5:30, Steve wrote:
>
> This Plugin is the real Plugin. Rest all sites which are proclaiming it to 
> be a copy has copied my Plugin. Actually some Indian guy bought my Plugin 
> and he re-launched it with his own version and now he is selling my Plugin 
> under his name. If any body has an issue, he can mail me. I will give him 
> my client list and you can directly mail my clients who have purchased my 
> Plugin and ask them who is genuine and who is Fake.
>
> This Plugin was launched much before. It was only that I started posting 
> lately.
>
> Reagrds,
> Steve (The Original Developer)
>
> On Friday, July 27, 2012 6:49:20 PM UTC+5:30, Steve wrote:
>>
>> Thanks for bringing out the issue. I have resolved it. You don't need to 
>> Re-Login. Login once and you will be all done. And I will bring out a Free 
>> Plugin soon for download. Cheers !!
>>
>> Regards,
>> Steve.
>>
>>
>> On Friday, July 27, 2012 6:00:15 PM UTC+5:30, Ratty wrote:
>>>
>>>  Sorry but comments made by you along the lines of "If login fails the 
>>> first time, log in again and it will work" means buggy in my experience.
>>>
>>> On 26/07/12 16:14, Steve wrote:
>>>  
>>> @ Ratty
>>>
>>> I have tested it and its not a buggy Plugin and I am not trying to sell. 
>>> Its just we brought this out and wanted to inform all of you about this. 
>>> Please don't get it wrong. We have really worked hard for this and it 
>>> deserves Respect. And even if you are going to write it, it will take a lot 
>>> of weeks to do so.
>>>
>>> Thanks.
>>>
>>> On Thursday, July 26, 2012 5:06:27 PM UTC+5:30, Ratty wrote: 
>>>>
>>>> On 15/07/12 15:51, Steve wrote: 
>>>> > 
>>>> > hi guys, we have launched an amazing Plugin "Eagle" for Cake PHP. It 
>>>> > is user management Plugin which has 56 features. It also gives you 
>>>> > Login with FB, Twitter, LinkedIn, Foursquare, Google and Yahoo. You 
>>>> > can read all its features here: 
>>>> > http://developers.getyourplugin.com/features.html and you can check 
>>>> > the Plugin here: http://www.eagle.getyourplugin.com , you can test 
>>>> the 
>>>> > Plugin on this link: http://www.eagle.getyourplugin.com/login , 
>>>> > default username and password is 123456, check it and tell us the 
>>>> > feedback. 
>>>> > 
>>>> > Regards, 
>>>> > Steve 
>>>> > -- 
>>>> > 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...@googlegroups.com For more options, visit this 
>>>> > group at http://groups.google.com/group/cake-php 
>>>>
>>>> Let me get this straight... 
>>>>
>>>> You are trying to sell me a buggy plugin that I could write myself ( or 
>>>> use CakeDC's free one ) and I test it for you  for free ? 
>>>>
>>>>
>>>>  -- 
>>> 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...@googlegroups.com For more options, visit this 
>>> group at http://groups.google.com/group/cake-php
>>>
>>>
>>>  

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Be Aware of Pirated Copy of CakePhp 2.x User Management Plugin

2012-07-27 Thread Ivan Suzen


Hi All,

I found the *original website* for CakePhp 2.x User Management Plugin and I 
would like to share it with you all because I found some *pirated sites*which 
are selling this plugin. I believe, the real developer of the plugin 
should get the appreciation and profits  for his plugin.. Don’t you feel 
that ???

The original website is http://umpremium.ektasoftwares.com. Go through this 
website once, you will feel that this is the actual website. On this site, 
you can see *Google Ads* , it means Google has validated this site so it is 
neither fake nor pirated, it is original site. Even the developer of the 
plugin  has mentioned his contact details (Email id, Phone no etc)  and he 
is available for 24x7 to help you if you have any issue regarding this 
plugin. I have purchaged this plugin from this site and I really appreciate 
the developer and I am really happy with 24x7 support.  I really love his 
way to solve my problems on time. 

You can get the User Management Plugin Version 1.0 for free on 
http://usermgmt.ektasoftwares.com/ and User Management Plugin Version 2.0 
for a very low cost on 
http://www.ektasoftwares.com/products<http://www.ektasoftwares.com/products>
.


Please guys be aware of pirated copy of the CakePhp 2.x User Management 
Plugin and purchase the original plugin from original website.

Thanks,

Ivan

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cake PHP User Management Plugin Eagle

2012-07-27 Thread Ivan Suzen
Hi Guys...

I have purchased User Management Plugin from  
http://umpremium.ektasoftwares.com/ site. I went through the demo version 
of so called eagle plugin on http://www.eagle.getyourplugin.com/login. I 
found that it has been copied from original plugin which is available at  
http://umpremium.ektasoftwares.com. The original plugin has been launched 
on 16th April, 2012. So guys before buying this plugin from  
http://www.eagle.getyourplugin.com/ please go through  
http://umpremium.ektasoftwares.com/ and you can easily find out  that eagle 
plugin is pirated version of original plugin. 

Regards,
Ivan 


On Sunday, July 15, 2012 8:21:27 PM UTC+5:30, Steve wrote:
>
>
> hi guys, we have launched an amazing Plugin "Eagle" for Cake PHP. It is 
> user management Plugin which has 56 features. It also gives you Login with 
> FB, Twitter, LinkedIn, Foursquare, Google and Yahoo. You can read all its 
> features here: http://developers.getyourplugin.com/features.html and you 
> can check the Plugin here: http://www.eagle.getyourplugin.com , you can 
> test the Plugin on this link: http://www.eagle.getyourplugin.com/login , 
> default username and password is 123456, check it and tell us the feedback.
>
> Regards,
> Steve
>

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


SplFileInfo::openFile - (cake_core_file_map) ERROR

2012-02-24 Thread Ivan Santana
I use lampp in ubuntu.
When i try to cake bake model it returns me:

PHP Warning:  SplFileInfo::openFile(/opt/lampp/htdocs/app/tmp/cache/
persistent/cake_core_file_map): failed to open stream: Permission
denied in /opt/lampp/htdocs/cakephp/lib/Cake/Cache/Engine/
FileEngine.php on line 297

This problem was because the files in /opt/lampp/htdocs/app/tmp/cache/
persistent was owned for NOBODY user, so i changed to my own user and
now it works.!

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Routing, one little doubt

2012-01-26 Thread Ivan
Anyone know how to do it?
Thanks

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Routing, one little doubt

2012-01-25 Thread Ivan
Hi all,
First, thanks for the answers that you have gave me.. They really
helped!

I`m having a trouble, in making a simple route.
What ever is the controller, or action, if there is a /validate_fields
in the end, i want cake to see it like: :controller/validate_fields
ex.:

/someController/someAction/validate_fields would go to someController/
validate_fields
or
/asdasdasd/bbb/validate_fields/asd would go to /asdasdasd/
validate_fields/sad
and,
/anotherc/validate_fields would stay like it is
Basicaly, i need to "skeep" the "action"...
How is that possible?
Thanks

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Find(all) query in multiple table

2012-01-21 Thread Ivan
Hi,
Maybe someone can help me with this...
The tables are linked this way:
http://dl.dropbox.com/u/52896949/Screen%20Shot%202012-01-22%20at%201.03.03%20AM.png
What i need is:
Find all Events that a user is linked with.
Witch means: that a user is "owner" (the Events.user_id) or that the
user is staff of (Table Staffs).
So, what i have made is:

public function getEventsOf($User_id){

$conditions = array(
'Event.status' => 'active',
'AND' => array(
'OR' => array(
'Event.user_id' => $User_id,
'OR'=>array(
'AND' => array(
'Event.id = 
Staff.user_id',
'Staff.user_id' => 
$User_id,
),
),
),
),
);
$users = $this->find('all', array(
'conditions'=> $conditions,
'recursive' => 0) );

return $users;
}

-
But a error shows up:
-
Error: SQLSTATE[42S22]: Column not found: 1054 Unknown column
'Staff.user_id' in 'where clause'
SQL Query: SELECT `Event`.`id`, `Event`.`user_id`, `Event`.`title`,
`Event`.`description`, `Event`.`country`, `Event`.`state`,
`Event`.`city`, `Event`.`date_start`, `Event`.`date_end`,
`Event`.`pin`, `Event`.`pros_cons`, `Event`.`status`,
`Event`.`created`, `Event`.`modified`, `User`.`id`,
`User`.`first_name`, `User`.`last_name`, `User`.`email`,
`User`.`password`, `User`.`username`, `User`.`country`,
`User`.`state`, `User`.`status`, `User`.`created`, `User`.`modified`
FROM `events` AS `Event` LEFT JOIN `users` AS `User` ON
(`Event`.`user_id` = `User`.`id`) WHERE `Event`.`status` = 'active'
AND ((`Event`.`user_id` = 12) OR (((`Event`.`id` = `Staff`.`user_id`)
AND (`Staff`.`user_id` = 12


What do i do?
Thanks...
Ivan

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Protecting access to field, does exist?

2012-01-21 Thread Ivan
Hi!
I am developing my first CakePHP base software, and as i`m very
interesting in building robust applications i mist one thing that i
could`t find anything in anywhere, and someone may know.
Well, what i could`t find in CakePHP, is a way to Protect fields from
others Model.
Eg.:
If you find('all') in a User, you may get it`s friends list, it`s
friend (user) and their password too. And you will get also, all data,
that you don`t wan`t to show people. Like in a XML, or web service...
As my system will have a LOT of XML to interact with others services,
i would like to know, if theres is an component, or if already is
something integrated with cakePHP, to protect things, and make the
system only find, what i let them find, and not everything...
Thanks!
Ivan

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Model for competition

2012-01-07 Thread Ivan
Hi every one,
I am working in a project, that is basicaly, a competition manager,
where organizers can register, and then have access to those things:
- Include Teams from a database
- Register new teams in database
- View only the events created by himself
- Include in each event, criteria, like: Project score, Building
score, Practice score...

Judges, would have access to:
- Post scores to the existing criteria created by the organizer
- Give comments to the teams, so that a team can have many comments in
one participating event

Scores would never be deleted, the "right" one would be the newer one

After doing that i want to make something like this:
Judge can only give scores to the criteria set to it`s user, so a
Project judge, can only give scores to the Project score.(don`t know
how to make that in db)

The thing, is that each event has many criterias, and that each
criteria have many scores with its type, but they are also linked with
the teams participating in the event. I`m VERY confused at this..
Here is what i have done, with the database in MySQL Workbench:
http://cl.ly/2r3F25232u1d303x2D2u

I apreciate, if anyone could tell me, if i`m in the right direction,
and if not, what can i do to make it work good.

Thanks everyone,
Ivan

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


POST from external site

2011-06-15 Thread Ivan Rocha
Hi,

I'm trying to integrate a CakePHP website to PagSeguro (brazilian's Paypal)
and when PagSeguro sends a POST containing the payment data, CakePHP don't
show the POST, even if I put in the controller a "debug($_POST); die();".

I have checked the network tab of Firebug and the POST is being sent
correctly. I tried to use a pure PHP file outside CakePHP to receive the
POST and it shows the data normaly.

I searched a lot about CSRF protection and found nothing. Is there any
Cake's "behaviour" that cleans the POST data?

Thank you for helping,
-- 
Ivan Rocha

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: REST in cakePHP

2010-04-15 Thread ivan
i'am sorry John if i make you loose interest for me. I hope you can
still help me. One more time i say sorry for you John. God bless you
forever.

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
with http://localhost/alkitab/pencarian_kata_kitabs/view/120515
i go to view page with id=120515

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
after i add :
data));
?>
in top from view this result is alkitab\views\pencarian_kata_kitabs
\show.ctp (line 2)

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
the result is

alkitab\views\pencarian_kata_kitabs\show.ctp (line 2)

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
to

http://localhost/alkitab/pencarian_kata_kitabs/120515

and

http://localhost/alkitab/pencarian_kata_kitabs/view/120515

nothing different to this result. both go to pencarian_kata_kitabs/
view with id=120515.

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
when i access with :

http://localhost/alkitab/pencarian_kata_kitabs/120515

display with (default) 0 query took ms

but when i access with :
get('http://localhost/alkitab/
pencarian_kata_kitabs/view/120515');
echo $results;
?>

this result same: (default) 0 query took ms

if there was anything wrong with my controller, or other parts of my
programming?

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
what there was anything wrong for my programming?
what should I add to be able to add a method that can be requested?
how to access new method?

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
where I can define a method that can be requested? This is one of my
controller:

PencarianKataKitab->recursive = 0;
$this->set('pencarianKataKitabs', $this->paginate());
$this->set(compact('pencarianKataKitabs'));
}

function view($id = null) {
if (!$id) {
$this->Session->setFlash(__('Invalid 
PencarianKataKitab.', true));
$this->redirect(array('action'=>'index'));
}
$this->set('pencarianKataKitab', $this->PencarianKataKitab-
>read(null, $id));
}

function add() {
if (!empty($this->data)) {
$this->PencarianKataKitab->create();
if ($this->PencarianKataKitab->save($this->data)) {
$this->Session->setFlash(__('The 
PencarianKataKitab has been
saved', true));
$this->redirect(array('action'=>'index'));
} else {
$this->Session->setFlash(__('The 
PencarianKataKitab could not be
saved. Please, try again.', true));
}
}
}
}

this is my app/pencarian_kata_kitabs/view/xml/index.ctp :

serialize($pencarianKataKitab); ?>


when i access with :
get('http://localhost/alkitab/
pencarian_kata_kitabs/120515');
echo $results;
?>

the result is : (default) 0 query took ms

please give me solution from this problem

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
this is my code at now in view:

get('http://localhost/alkitab/
pencarian_kata_kitabs/', 'q=120515');
echo $results;
?>

please give me solution for next step

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
tq. at now this result not error but this result is: (default) 0 query
took ms

why? you can help me Jeremy?

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
i'm comefrom indonesia and i litle can speak english so i'm sorry if
you dificult to understand for my said.

I basically just hoping to get an explanation in detail how to create
REST in cakephp. Until now i can't find step, when it's step can help
me and guide me from first step until success create REST cakephp.

I hope every people can help my problem.

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
please you give me step by step with detail. I'm first time create
webservice REST with cakePHP.

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
i understand with php but cakephp is first time so i'm confused with
REST cakephp. i hope you can give me solution so i can understand make
server and client REST cakePHP.

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
Give me detail how to create REST server from first time until
finished please. thanks before. i know my step before is wrong.

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
please give me step by step to create server and client REST with
cakePHP. What my step before is correct?

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
with 'http://localhost/alkitab/pencarian_kata_kitabs/120515 will
access view with id=120515, but how i can access example method search?

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: REST in cakePHP

2010-04-15 Thread ivan
I still do not understand about REST cakePHP. please give me solution
about REST cakePHP (make server and client).
Thanks before Mike. God Bless you forever

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
yes. I think after i filling $result, i can echo it. What it's step
wrong?
please give me solution.

I can ask your email address mike?
I hope you can help me. At now i create website bible indonesian
version. please help me.

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
get('http://localhost/alkitab/
pencarian_kata_kitabs/120515');
echo $result;
?>

and error:
 Undefined variable: result [APP\views\pencarian_kata_kitabs\show.ctp,
line 5]

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
get('http://localhost/alkitab/
pencarian_kata_kitabs/120515');
echo $result;
?>

error is :
Undefined variable: result [APP\views\pencarian_kata_kitabs\show.ctp,
line 5]

please give me solution. i'm confused

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
it is my controller pencarian_kata_kitabs:

class PencarianKataKitabsController extends AppController {

var $name = 'PencarianKataKitabs';
var $helpers = array('Html', 'Form');
var $components = array('RequestHandler');
function index() {
$this->PencarianKataKitab->recursive = 0;
$this->set('pencarianKataKitabs', $this->paginate());
$this->set(compact('pencarianKataKitabs'));
}

function view($id = null) {
if (!$id) {
$this->Session->setFlash(__('Invalid 
PencarianKataKitab.', true));
$this->redirect(array('action'=>'index'));
}
$this->set('pencarianKataKitab', $this->PencarianKataKitab-
>read(null, $id));
}

function add() {
if (!empty($this->data)) {
$this->PencarianKataKitab->create();
if ($this->PencarianKataKitab->save($this->data)) {
$this->Session->setFlash(__('The 
PencarianKataKitab has been
saved', true));
$this->redirect(array('action'=>'index'));
} else {
$this->Session->setFlash(__('The 
PencarianKataKitab could not be
saved. Please, try again.', true));
}
}
}

function edit($id = null) {
if (!$id && empty($this->data)) {
$this->Session->setFlash(__('Invalid 
PencarianKataKitab', true));
$this->redirect(array('action'=>'index'));
}
if (!empty($this->data)) {
if ($this->PencarianKataKitab->save($this->data)) {
$this->Session->setFlash(__('The Pencarian Kata 
Kitab has been
saved', true));
$this->redirect(array('action'=>'index'));
} else {
$this->Session->setFlash(__('The Pencarian Kata 
Kitab could not be
saved. Please, try again.', true));
}
}
if (empty($this->data)) {
$this->data = $this->PencarianKataKitab->read(null, 
$id);
}
}

function delete($id = null) {
if (!$id) {
$this->Session->setFlash(__('Invalid id for 
PencarianKataKitab',
true));
$this->redirect(array('action'=>'index'));
}
if ($this->PencarianKataKitab->del($id)) {
$this->Session->setFlash(__('PencarianKataKitab 
deleted', true));
$this->redirect(array('action'=>'index'));
}
}
}

it's my routes:
Router::mapResources('pencarian_kata_kitabs');
Router::parseExtensions();

it's C:\xampp\htdocs\alkitab\views\pencarian_kata_kitabs\xml
\index.ctp :

serialize($pencarianKataKitabs); ?>


it's view/show :
get('http://localhost/alkitab/
pencarian_kata_kitabs/120515');
echo $result;
?>

with it's step not correct. please give me solution from it's problem.
tq AD.

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
after i create server with http://book.cakephp.org/view/477/The-Simple-Setup:
Router::mapResources('pencarian_kata_kitabs');
Router::parseExtensions();

next step create client in app/view/pencarian_kata_kitabs/show i add
code:
get('http://localhost/alkitab/
pencarian_kata_kitabs/120515');
echo $result;
?>

why did not show? please give me solution.

Thanks AD.
from Ivan

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
i'm sory AD. You can give me step to develop server REST CakePHPnya?
because my server is not correct.
After you give me to create server, please give me step to access this
server (client). please. I hope you can help me.

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
give me how to make client to access this REST?

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
please help and give me solution to finished from this problem.

I want to ask whether the REST can be accessed by other websites? (Web
service)

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
I've created define('WEBSERVICES', 'on');

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
I've made a table for the controller. i genererate with cake bake all
from all table in my database so cotroller is complete.

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
I other than using the steps 
http://bakery.cakephp.org/articles/view/restful-web-services-with-cak,
I also have tried http://book.cakephp.org/view/477/The-Simple-Setup.

When i tried http://book.cakephp.org/view/477/The-Simple-Setup, this
is my work:
1. in  app/config/routes.php I would add :
 Router::mapResources('pencarian_kata_kitabs');
 Router::parseExtensions();
2. when i try access my URL 
http://localhost/alkitab/pencarian_kata_kitabs/144191,
this step can give result to show view when id is 144191.
3. in C:\xampp\htdocs\alkitab\views\pencarian_kata_kitabs\xml, i add :

serialize($pencarianKataKitabs); ?>

4. how i can show result of search? example i search John 1, so this
result is John 1:1, John 1:2 until the end John 1.
5. How i can try, to know what i doing it's true? (how to access my
work until show result from search?)

please help and give me guide to can make it with true. You can give
me guide from 
http://bakery.cakephp.org/articles/view/restful-web-services-with-cakephp
or you can give me guide from http://book.cakephp.org/view/477/The-Simple-Setup.

Thanks before.
Ivan

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
i hope you can help me and give me for this problem in REST cakePHP.

Thanks before.
God Bless You John

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
Hello John,

please help me and give me solution to repair my work until true and
successfull. Thanks before for your help.



From:
Ivan

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread ivan
I followed the steps as in 
http://bakery.cakephp.org/articles/view/restful-web-services-with-cakephp.

and this is what I do:
1. in controllers/components

2. make a rest.php file in views/helpers

3. In views/layouts make a folder called 'rest' and put a
default.thtml file in it
'); ?>

4. in models/pencarian_kata_kitabs.php
 array(
'className' => 'Alkitab',
'foreignKey' => 'KITAB_ID',
'conditions' => '',
'fields' => '',
'order' => ''
),
'TempKata' => array(
'className' => 'TempKata',
'foreignKey' => 'KATA_ID',
'conditions' => '',
'fields' => '',
'order' => ''
)
);
var $validate = array(
'KITAB_ID' => array('numeric',VALID_NOT_EMPTY),
'KATA_ID' => array('numeric',VALID_NOT_EMPTY)
);

}
?>
5. in controllers/pencarian_kata_kitabs_controller.php
function listing() {
   $this->set('alkitabku', ClassRegistry::init("Alkitab")-
>find('all',
array(
  'conditions'=>array(
"and"=>array(
'CONCAT(Alkitab.kitab," 
",Alkitab.pasal) like '=>'mazmur',
'CAST(Alkitab.ayat AS UNSIGNED) 
>='=>'1',
'CAST(Alkitab.ayat AS UNSIGNED) <='=>'1'
)
  )
   )
));
}
6. in views/pencarian_kata_kitabs/rest/listing.thtml
if (isset($alkitabku) and !empty($alkitabku)) :  ?>











check('Message.flash')): ?>
read('Message.flash')));?>





when i access http://localhost/alkitab/rest/pencarian_kata_kitabs/listing,
this result is
not found
Error: The requested address '/rest/pencarian_kata_kitabs/listing' was
not found on this server.

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: REST in cakePHP

2010-04-14 Thread ivan
I'am very confused with step by step to setup REST. You have the best
tutorial all about REST cakePHP?  i hope, i have it. I hope this
tutorial can guide me ste by step until finished develop REST.

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Help Me about REST

2010-04-14 Thread ivan
I'm can't make REST in cakePHP. I follow step by step
http://bakery.cakephp.org/articles/view/restful-web-services-with-cakephp,
but this way can't. What do you have tutorial about REST?

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-02-25 Thread ivan
What i can know your email address John Andersen?
I have followed the steps tutorial cakephp rest but How test it so I
know I am right step or not? What i am Access it is with : /
alkitabs/123? When i am doing it, what show in my screen? xml or not?
when i am access ../alkitabs/123 in my screen showing display not xml
and as generally. thanks

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: REST in cakePHP

2010-02-25 Thread ivan
What i can know your email address?

I have followed the steps tutorial cakephp rest but How test it so I
know I am right step or not? What i am Access it is with : /
alkitabs/123? When i am doing it, what show in my screen? xml or not?
when i am access ../alkitabs/123 in my screen showing display not xml
and as generally. thanks

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: REST in cakePHP

2010-02-25 Thread ivan
I can't understand with this tutorial, because for me this tutorial
not complete and not detail and not simple. I'am sorry because i
starting from zero (0), so i am confuse, if tutorial not detail and
not many sample to create server and client.

You can give me tutorial in this group? What first way to built
server? Thanks before. I am sorry, i make you bussy because me.

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


REST in cakePHP

2010-02-24 Thread ivan
Do you know about REST in cakePHP? Are you have tutorial to use REST
in cakePHP? I want to build server n client with cakePHP. help me
please.

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Web Service cakePHP

2010-02-17 Thread ivan
You can give me tutorial about REST cakePHP? please help me this
tutorial.

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Web Service cakePHP

2010-02-17 Thread ivan
You have the best tutorial about REST cakePHP? please give me this
tutorial or recommendation tutorial about this.

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Web Service cakePHP

2010-02-16 Thread ivan
what with REST cakePHP, we can send many data (array)? What easy to
implementation is it?

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


  1   2   >