Note that there are some explanatory texts on larger screens.

plurals
  1. PObash command not found, or other workaround?
    text
    copied!<p>I'm working with the book Agile Web Development with Yii. In Chapter 8, it creates a php script to set up a RBAC (role based access control) so that when we access the shell at</p> <pre><code>/framework/yiic shell </code></pre> <p>it should allow us to enter a command </p> <pre><code>rbac </code></pre> <p>Pursuant to the PHP script that we created, the command creates three roles, Owner, Member and Reader with various permissions.</p> <p>My problem is that, working with MAMP, when I do the command</p> <pre><code>yiic shell </code></pre> <p>it says </p> <p><code>-bash: yiic: command not found</code></p> <p>Therefore, I can't create these roles, and then I can't continue along with the book, because I don't know any work around</p> <p>Can anyone help? </p> <p>UPDATE pursuant to one of the answers below, I did <code>chmod +x yiic</code> </p> <p>Now when I run <code>/framework/yiic shell</code> it seems to enter the shell but not the same one described by my book</p> <p>The book tells me I should get this</p> <pre><code> % YiiRoot/framework/yiic shell Yii Interactive Tool v1.1 (based on Yii v1.1.2) Please type 'help' for help. Type 'exit' to quit. &gt;&gt; Now type help to see a list of available commands: &gt;&gt; help At the prompt, you may enter a PHP statement or one of the following commands: - controller - crud - form - help - model - module - rbac Type 'help &lt;command-name&gt;' for details about a command. </code></pre> <p>However, I'm getting </p> <pre><code>USAGE yiic shell [entry-script | config-file] DESCRIPTION This command allows you to interact with a Web application on the command line. It also provides tools to automatically generate new controllers, views and data models. It is recommended that you execute this command under the directory that contains the entry script file of the Web application. PARAMETERS * entry-script | config-file: optional, the path to the entry script file or the configuration file for the Web application. If not given, it is assumed to be the 'index.php' file under the current directory. </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload