Yii Framework Forum: Yiiframework.co.il Code is now open sourced! - Yii Framework Forum

Jump to content

  • (6 Pages)
  • +
  • « First
  • 3
  • 4
  • 5
  • 6
  • You cannot start a new topic
  • You cannot reply to this topic

Yiiframework.co.il Code is now open sourced! Rate Topic: ***** 4 Votes

#81 User is offline   Vince. 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 432
  • Joined: 29-December 08
  • Location:Los Angeles,CA

Posted 02 April 2012 - 05:28 PM

@sapporoguy

You need to use it like so:

<?php echo User::hashPassword('123456', 'admin@admin.com'); ?>

then what ever the above line outputs put in the password column for the admin user. Make sure that his email address (the admin user) is admin@admin.com

Then try to login.

@Chris i just browsed that site and everything seems to work for me, every page i tried from the navigation worked. What didn't work exactly?
Vince Gabriel, Lead Developer.
Posted ImagePosted ImagePosted Image
0

#82 User is offline   SapporoGuy 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 177
  • Joined: 25-December 10
  • Location:Sappor Beer Refinery

Posted 02 April 2012 - 05:46 PM

How did you login?
0

#83 User is offline   SapporoGuy 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 177
  • Joined: 25-December 10
  • Location:Sappor Beer Refinery

Posted 02 April 2012 - 05:47 PM

Lol, awesome!

Posted a few seconds late it seems:)
0

#84 User is offline   Chris-S 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 32
  • Joined: 08-January 12
  • Location:Ohio

Posted 02 April 2012 - 05:48 PM

Hey sap, if your having issues with pages missing etc....try this (.htaccess):

# Compress JS/CSS/XML files
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/x-javascript
</IfModule>

# Disallow listing directories and files
Options -Indexes

# Disallow access to svn folders
<FilesMatch "\.svn/.*">
order deny,allow
deny from all
</FilesMatch>

# Disallow access to htaccess file
<Files .htaccess>
order deny,allow
deny from all
</Files>

# Rewrite Engine
<IfModule mod_rewrite.c>
RewriteEngine On

# No subdomain, redirect to subdomain
RewriteCond %{HTTP_HOST} ^YOUR DOMAIN GOES HERE$ [NC]
RewriteRule ^(.*)$ YOUR DOMAIN GOES HERE$1 [R=301,L]

# WWW to subdomain
RewriteCond %{HTTP_HOST} ^YOUR DOMAIN GOES HERE$ [NC]
RewriteRule ^(.*)$ http://YOUR DOMAIN GOES HERE/$1 [R=301,L]

RewriteCond %{REQUEST_FILENAME} \.(js|ico|gif|jpg|png|css|pdf|doc)$ [OR]
RewriteCond %{REQUEST_FILENAME} favicon.ico$ [OR]
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d

# Redirect all incoming urls to the application
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
</IfModule>

Changing the domain values fixed my issues :)
ARC cms - www.goarc.org
Yii based cms with mybb forum software integrated!
0

#85 User is offline   SapporoGuy 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 177
  • Joined: 25-December 10
  • Location:Sappor Beer Refinery

Posted 02 April 2012 - 05:55 PM

Sweet!

I wonder if your htaccess, the original And the one I posted make that a difference?
0

#86 User is offline   Chris-S 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 32
  • Joined: 08-January 12
  • Location:Ohio

Posted 02 April 2012 - 06:04 PM

View PostSapporoGuy, on 02 April 2012 - 05:55 PM, said:

Sweet!

I wonder if your htaccess, the original And the one I posted make that a difference?


I'm not sure

@vince - is the forum functional or did I screw something up?
ARC cms - www.goarc.org
Yii based cms with mybb forum software integrated!
0

#87 User is offline   Vince. 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 432
  • Joined: 29-December 08
  • Location:Los Angeles,CA

Posted 02 April 2012 - 06:57 PM

It worked for me when i tried it couple of hours ago.
Vince Gabriel, Lead Developer.
Posted ImagePosted ImagePosted Image
0

#88 User is offline   Vince. 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 432
  • Joined: 29-December 08
  • Location:Los Angeles,CA

Posted 02 April 2012 - 06:58 PM

and it works now too. i see: "There are not topics posted yet. Be the first to post."
Vince Gabriel, Lead Developer.
Posted ImagePosted ImagePosted Image
0

#89 User is offline   Vince. 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 432
  • Joined: 29-December 08
  • Location:Los Angeles,CA

Posted 03 April 2012 - 07:00 PM

Just uploaded it to github

https://github.com/V...iiframework-cms
Vince Gabriel, Lead Developer.
Posted ImagePosted ImagePosted Image
1

#90 User is offline   outrage 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 313
  • Joined: 10-November 09
  • Location:Blackpool, United Kingdom

Posted 04 April 2012 - 05:07 PM

View PostVince., on 03 April 2012 - 07:00 PM, said:

Just uploaded it to github

https://github.com/V...iiframework-cms



Cool, thanks Vince.

EDIT:

My first time using GIT.

I forked, created a new issue, branched, pushed and then sent a pull request, however there are now 2 issues.

Is that how it's meant to work?
0

#91 User is offline   Vince. 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 432
  • Joined: 29-December 08
  • Location:Los Angeles,CA

Posted 04 April 2012 - 07:01 PM

That's fine i just reviewed it and merged your pull request. Basically you create one issue for each pull request. but that's not that big of a deal.
Vince Gabriel, Lead Developer.
Posted ImagePosted ImagePosted Image
0

#92 User is offline   Roman Solomatin 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 181
  • Joined: 21-October 10
  • Location:Tallinn, Estonia

Posted 17 April 2012 - 10:26 PM

Thank you. Looking forward to research it.
0

#93 User is offline   rogerlzp 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 10-April 11

Posted 19 April 2012 - 10:03 AM

I got the error with nginx.

Fatal error: Call to a member function createCommand() on a non-object in /home/rogerli/work/yiicoilcms/protected/components/CustomUrlManager.php on line 19

Could any one show me how to fix the subdomain issue?

Thanks,
Roger
0

#94 User is offline   lynmar 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 26-September 11

Posted 01 May 2012 - 02:47 AM

The requested URL /yiiadmin/he/register was not found on this server.

:S

help
0

#95 User is offline   hav 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 21-October 10

Posted 15 October 2012 - 07:18 AM

View PostVince., on 02 April 2012 - 12:23 PM, said:

Glad you got it working.


Hello Vince, I'm using a CMS tool and I'm really enjoying it. Congrats. Insert another language (Portuguese - BR) and most URLs are working perfectly, but some URLs are not adding the full path, for example:

http://site.local/do...opic/basics.mvc

If I put:

http://site.local/pt...opic/basics.mvc

functions normally.

I researched the code and really should be some adjustment in CustomUrlManager.php but could not change the path so that works.

Another doubt: the language of URLs can be deleted?

Again congratulations and I thank the attention.
0

#96 User is offline   Sayyed Mohammed Ouf 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 23-December 12

Posted 23 December 2012 - 09:18 AM

i am getting error
PHP error

Declaration of Settings::model() should be compatible with CActiveRecord::model($className = 'CActiveRec...')

can anyone give clue what is wrong with it?
0

#97 User is offline   Vince. 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 432
  • Joined: 29-December 08
  • Location:Los Angeles,CA

Posted 01 January 2013 - 05:19 PM

Fixed. See
https://github.com/V...c03dc399716d0c2
Vince Gabriel, Lead Developer.
Posted ImagePosted ImagePosted Image
0

#98 User is offline   J.J 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 126
  • Joined: 01-April 11

Posted 03 January 2013 - 09:39 PM

View PostVince., on 01 January 2013 - 05:19 PM, said:



Looks good, thank you for updates Vince, and good website to study.
0

#99 User is offline   Ehsan Bahrami 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 13
  • Joined: 01-January 13

Posted 17 February 2013 - 01:32 PM

after I use project file in github,I get these errors:
1-at first,in importing insert.sql I get this error:
#1452 - Cannot add or update a child row: a foreign key constraint fails (`yiimysite4`.`authitemchild`, CONSTRAINT `authitemchild_ibfk_1` FOREIGN KEY (`parent`) REFERENCES `authitem` (`name`) ON DELETE CASCADE ON UPDATE CASCADE)

2-when I continue with this error in inserting,when i check http://localhost/yiiProject(mySite2)/
I get this error:
Fatal error: Class 'CLocale' not found in C:\wamp\www\yiiProject(mySite2)\protected\models\Newsletter.php on line 61

can you help me?

thanks
0

#100 User is offline   gaurish 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 28
  • Joined: 05-March 12
  • Location:Pune, India

Posted 20 March 2013 - 07:56 AM

View Postoutrage, on 29 March 2012 - 01:11 PM, said:

Thanks for your post, I was also having problems with custom pages.

I made a small change to your solution though to allow urls with dashes like the 'about-us' page.
Use this line instead:

$urlrules = array_merge( $urlrules, array(  "<alias:[0-9a-zA-Z_\-]+>/*"=>'site/custompages/index') );


Note:
Anyone still struggling with the custom pages, please ensure that you edit one of the pages and then submit it (you don't need to make a change).
This will delete the existing url cache and your pages should be viewable.


thanks....
thank you very much
this is what I am searching for long time..
Thanks,
Gaurish
0

Share this topic:


  • (6 Pages)
  • +
  • « First
  • 3
  • 4
  • 5
  • 6
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users