php cms and rewriteRule and cakephp routes

2013-05-19 Thread Mehrdad Dadkhah
hi

I have this folders in the host root:

app
lib
plugins
vendors
piwik

piwik is a php cms (just php no framework)

but this address (mySite.com/piwik) don't go to /piwik folder and
wan't to use rewriteRule and cakephp routes for it
I try lot of htaccess codes to resolve it but it didn't work
somthing like:


   RewriteEngine on
   RewriteCond %{REQUEST_URI} !^/piwik/
   RewriteRule^piwik -[L]
   RewriteRule^$ app/webroot/[L]
   RewriteRule(.*) app/webroot/$1 [L]


and 

how can resolve this problem?

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 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.




Broken Sessions When Using Firebug in CakePHP 2.3

2013-05-19 Thread OJ Tibi - @ojtibi
Hi all, this is a fairly straightforward question.

In previous versions, the behavior where CakePHP generates a new session 
when folks like us inspect the page using Firebug can be mitigated by 
setting the 'Security.level' to 'medium' via the core config.

How can we stop CakePHP 2.3 from regenerating the session?

Cheers,
OJ

-- 
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: Cake is NOT able to connect to the database. Database connection "Mysql" is missing, or could not be created.

2013-05-19 Thread Gabriel Saulescu
I fixed it. Chenan Patel helped me. Thank you, Chenan :)

On Thursday, May 16, 2013 9:58:37 PM UTC+3, Gabriel Saulescu wrote:
>
> I am trying to install cakephp on my laptop.
> I received this error.
> My SO is a WindowsVista in 32 b.
> I changed this:
> extension=php_mssql.dll.
>
> I need your help, please. What I have to do?
>
> Thank you in advance. Gabriel
>

-- 
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: Error 406 - Not Acceptable with form

2013-05-19 Thread Robert Gravel
Changed to multipart/form-data   seems to solve issue.


On Sat, May 18, 2013 at 1:55 PM, rockbust  wrote:

>
> I have a form submit problem and looking for a solution.  Receiving a “406
> Not Acceptable” when I submit my form.
>
> I am passing a custom array that sometimes contains 100 or more users. The
> admin needs to select all and register them.  As you can see when the form
> is submitted there could be 1,000 separate elements in the form.
> In doing a little research it seems it is possibly an issue with some
> security feature of the server  (my xampp server does not return the
> error).
> The hosting company is not very helpful.
>
> Solutions please??
> I have come up with one possible solution to paginate the array sent to the
> view. That is a problem in itself because I am using a custom array that
> has
> been manipulated to the max and can not find out how to paginate it? Second
> this requires the admin to load the view and submit it maybe 20+ times to
> register all users. Not a great option..
>
> My form is set up as so.
> admin_add_eligible:
>
> Form->create('Testregistration', array('id' =>
> 'selectForm','action'=>'/add_eligible'));?>
>
>
> Select All  onclick="checkAll(document.getElementById('selectForm'), 'results1',
> this.checked);" />
> 
> 
> 
> 
> 
> 
> 
> 
>
>  $i = 0;
> if(!empty($eligibles)){
> foreach ($eligibles as $user):
> //debug($user);
> $class = null;
> if ($i++ % 2 == 0) {
> $class = ' class="altrow"';
> }
> ?>
> >
>
>  $this->Form->input('User.'.$user['user_id'].'.checked',
> array('type'=>'checkbox', 'multiple' => 'checkbox', 'class' => 'results1',
> 'label'=>false, 'options' => array('Testregistration'.$user['user_id']
> =>'Testregistration'.$user['user_id']))); ?> 
>  
>  
>  
>  
>  $this->Form->input('Bill.'.$user['user_id'].'.create_bill',
> array('label' => false,'type'=>'checkbox','checked'=>true)); ?> 
>  $this->Form->input('Bill.'.$user['user_id'].'.auto_pay',
> array('label' => false,'type'=>'checkbox')); ?> 
>  $this->Form->input('Bill.'.$user['user_id'].'.due_date',
> array('label' => false ,'type'=>'date', 'dateFormat' => 'MDY')); ?> 
>
> Html->link(__('View', true),
> array('controller' =>
> 'users','action' => 'view', $user['user_id'])); ?>
>
> Form->input('school_id', array(
> 'value' => 'hello' ,
> 'type' => 'hidden') );
>
> echo $this->Form->input('Testregistration.'.$user['user_id'].'.program_id',
> array( 'type' => 'hidden', 'value' =>  $user['program_id'] ));
> echo
> $this->Form->input('Testregistration.'.$user['user_id'].'.old_rank_id',
> array( 'type' => 'hidden', 'value' =>  $user['old_rank_id'] ));
> echo $this->Form->input('Testregistration.'.$user['user_id'].'.fee', array(
> 'type' => 'hidden', 'value' =>  $user['fee'] ));
> ?>
>
> 
>
>
>
>
> --
> View this message in context:
> http://cakephp.1045679.n5.nabble.com/Error-406-Not-Acceptable-with-form-tp5714980.html
> Sent from the CakePHP mailing list archive at Nabble.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.
>
>
>

-- 
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: Memcahce

2013-05-19 Thread Борислав Събев
What are you going to use memcache for?
What do you want to cache there? There may be something better that 
memcache.

On Saturday, 18 May 2013 08:41:14 UTC+3, raj kumar Pustela wrote:
>
> Hi to all,
>   
>If any one known about memcache.please help me how to implement 
> *memcache *in cakephp 2.0.3.
> 
>
>
>
>
>
> Thanks,
> Rajakumar.P
>

-- 
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.