SaveAll 100000 data form Sql server to Mysql

2011-03-09 Thread cakephp_rocks
i use 2 dbConfigs one conncects to mysql the other connects to SQL Server so Detail is Sql Server and DataDetail is Mysql this is my code so far any idea how i can do this i get this error is it possiable to do a beforeSave{} to see if the data exists import new ones Allowed memory size of

Re: Iphone Detect

2009-09-16 Thread cakephp_rocks
i finally got to fix it here is the code if any you guys wanna use it Thanks to all of you happy baking CAKE PHP ROCKS - if (document.cookie.indexOf("iphone_redirect=false") < 0) { if((navigator.userAgent.match(/iPhone/i)) || (navigator

Re: Auth Question

2009-09-16 Thread cakephp_rocks
so what should i do to fix this i'm still learning about auth in cakephp and would you explain whats black hole for and i sometimes get "invalid form submission" thank you in advance On Sep 15, 9:07 am, AD7six wrote: > On 15 sep, 17:30, cakephp_rocks wrote: >

Re: Iphone Detect

2009-09-15 Thread cakephp_rocks
html">http://iphonemicrosites.com/mainsite.html</a>'; } } } On Sep 15, 12:11 pm, majna wrote: > http://www.w3schools.com/JS/js_cookies.asp > > On Sep 15, 7:35 pm, cakephp_rocks wrote: > > > > > how to save it in cookie and any idea never done it before > &g

Re: Iphone Detect

2009-09-15 Thread cakephp_rocks
how to save it in cookie and any idea never done it before On Sep 15, 10:29 am, iFeghali wrote: > in the default view of your site or maybe the default template ? but > you'd better save the answer in a cookie or something. --~--~-~--~~~---~--~~ You received this

Re: Auth Question

2009-09-15 Thread cakephp_rocks
if (!$this->Auth->user()) { $this->render('/elements/login'); } else { $this->render('/elements/context'); } } $this->

Re: Auth Question

2009-09-14 Thread cakephp_rocks
is there somebody can help me with this On Sep 14, 6:48 am, cakephp_rocks wrote: > this is in my app controller > > function beforeFilter( ) { >         parent::beforeFilter(); >                 $this->Auth->loginAction = array('admin' => false, > 'co

Re: Auth Question

2009-09-14 Thread cakephp_rocks
th->loginRedirect = '/'; $this->Auth->logoutRedirect = '/'; On Sep 12, 6:34 am, brian wrote: > What does your AppControll:beforeFilter() look like? > > On Fri, Sep 11, 2009 at 5:59 PM, cakephp_rocks > > > > wrote: >

Auth Question

2009-09-11 Thread cakephp_rocks
hello everybody i have a quick Auth question i have created a login form in a element in its in default layout whenever i login it wont referer to the page i was it redirects back to ' / ' so i tried this dosent seem to work $this->Auth->loginRedirect = $referer; so if i use the users/login in

Re: Find all

2009-08-24 Thread cakephp_rocks
figured it out thank you all $questions = $this->Question->find('all', array('conditions' => array ('AND' => array('OR' => array('Question.tip' => 'yes'),'NOT'=> array ('Question.active' =&g

Find all

2009-08-24 Thread cakephp_rocks
how to do this complex find with this table id question answer tip= 0/1 default is 0 active = 0/1 default is 0 so what i want to do is if its tip= 1 it should show tip or if its tip = 0 its show the question it should not show if its active = 0 thanks --~--~-~--~~

forms in a element

2009-08-05 Thread cakephp_rocks
hey i created a form in a element and add the to my home page for some reason when i submit it it say Invalid form submission and redirect me to this '/users/register/' i give to the form any idea here is what i did create(null, array('url' => '/users/register/' . $this- >params['url']['url']

Re: Auth fields loging in with email instead of username

2009-07-22 Thread cakephp_rocks
i couldnt find anything in book thats why i come here for help lol On Jul 22, 2:07 pm, Andreas wrote: > http://book.cakephp.org/complete/172/Authentication#Setting-Auth-Comp... > > greets > Andreas > > cakephp_rocks schrieb: > > > > > is this possible loging

Auth fields loging in with email instead of username

2009-07-22 Thread cakephp_rocks
is this possible loging in with email field instead for username field if its how ?? --~--~-~--~~~---~--~~ 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

Re: Auth Component, white page when cookies disabled

2009-06-12 Thread cakephp_rocks
set debug to 1 you should able to see it On Jun 9, 3:44 pm, Marcel wrote: > Hi, > > When I disable Cookies I get a white page after logging into my website > (using Auth Component). > > Is there a way view an error page instead of just a white page? > > Marcel --~--~-~--~~---

Re: if ($loggedIn == 0){

2009-06-08 Thread cakephp_rocks
could you give me un example if you mean like this check('Auth.User.id'))) { echo $html->link(__('login to comment', true), 'users/login'); } ?> i allready tried and it gives me the same errorr On Jun 8, 3:01 pm, Miles J wrote: > To be more precise, this should work better. > > $session

Re: if ($loggedIn == 0){

2009-06-08 Thread cakephp_rocks
ugging the session in the view: > > debug($session->read('Auth')); > > See if the User array exists. > > On Jun 8, 10:55 am, cakephp_rocks wrote: > > > > > hey this didnt work i want to used it in my view when i put this i get > > this fatel error

Re: if ($loggedIn == 0){

2009-06-08 Thread cakephp_rocks
('Auth.User'))) { > > } > > On Jun 5, 9:03 am, cakephp_rocks wrote: > > > > > how can you use this if ($loggedIn == 0){ > > > to set message like lets say > > > i have comment box if users not logged in show them this message &g

Comment_Count

2009-06-08 Thread cakephp_rocks
How to do comment count array( 'className' => 'User', 'foreignKey' => 'user_id', 'conditions' => '', 'fields' => '', 'order' => '' ), 'Post' => a

if ($loggedIn == 0){

2009-06-05 Thread cakephp_rocks
how can you use this if ($loggedIn == 0){ to set message like lets say i have comment box if users not logged in show them this message (login to comment ) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP"

Redirect Question

2009-06-04 Thread cakephp_rocks
$this->redirect(array('controller' => 'posts', 'action' => 'comment')); is there anyway i could put $this->redirect(posts/comment/ $post['Post']['id'] )); whats a good sloution to do that i want my user to comment and redirect back to there post the commented --~--~-~--~~